Array Of Strings Initialization In .NET 3.5 GUI - CLI C++ | Dream.In.Code?
May 4, 2011
I am using visual studio 2008 and i can't seem to rectify this error..it seems simple but i really can't seem to rectify this.What iam trying to do is pass the values of an initialized string array to an uninitialized string array using a loop..here's my code:-
Document ^doc = gcnew Document("Abdul.doc");
String ^yes = doc->GetText();
array<Char>^chars = {' '};
array<String^>^splitx = yes->Split(chars);
[code]....
View 2 Replies
ADVERTISEMENT
Jan 20, 2011
I'm wondering if you know if there is a better way to write this code in order to speed it up. It has several blocks of if statements filling arrays, like this:
row0: If x < b(1, 1) Then a1(i, j + 1) = 0
If x > b(1, 1) And x < b(1, 2) Then a1(i, j + 1) = 30
If x > b(1, 2) And x < b(1, 3) Then a1(i, j + 1) = 60
[code].....
View 5 Replies
Sep 7, 2011
I'm using Real Studio 2011r3.It's just a simple game that's a small maze from a bird's eye view and you've got to dodge enemies and what not.But I've been told to make a map array like this: [code] I've got level1map(13,13) as an integer, and the numbers in the brackets are supposed to be ypos, xpos.Say I make level1map(5,7) as = 1, it'll make both the 5,7 and the 7,5 so that you can't walk into them.. even if 7,5 is still = 0.I could have just left something out somewhere, but I've been trying to work this out for days..Oh, and with the 7,5 will let me walk there if I walk from the left or right.. but not from the top or bottom.
View 11 Replies
Feb 24, 2012
Is there a way to add comments to an array initialization? For example:
Dim test As UShort() = { _
1, _
2, _
3, _
4 _
}
I'd like to add a comment on each line, but the obvious syntaxes fail (for obvious reasons)
1, 'test _
1 'test, _
So, am I out of luck?
View 10 Replies
Jan 9, 2012
I realize this post is rather long, but I wanted to give all the information up front instead of people having to ask me for more information.At the end of the re-installation of Visual Studio 2008, there is this message:
"Microsoft SQL Publishing Wizard: [2] Error: Installation failed for component Microsoft SQL Publishing Wizard. MSI returned error code 1638" in the log file dd_error_vs_procore_90.txt.
I have searched on Google for this whole message and found some references to this error, but I have done what they said worked for them and it did not fix the problem for me.When I searched for just "MSI returned error code 1638", I got that it cannot install something because it is already installed:"Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel".In Add/Remove Programs I see these two programs:
Microsoft SQL Server Database Publishing Wizard 1.3
Microsoft SQL Server Database Publishing Wizard 1.4
Are these programs/versions what the error is refering to? Am I safe to remove them and depend on the similarly-named item which would be newly installed with Visual Studio 2008 - "Microsoft SQL Publishing Wizard"? I still use SQL Server 2000 and 2005 on my computer, as well as 2008. I had installed VS 2008 on my computer before without this problem and also have VS 2005 and 2010.
View 1 Replies
Aug 4, 2010
i am searching for gtalk open source code if anybody knows please let me know I need it urgently
View 1 Replies
Oct 13, 2011
I'm new to VB and my question is whether all elements of an array will be initially zero per default:
Dim myArray( nx, ny ) As Single (all elements zero ?)
or do i have to loop over the array and set all elements to zero?
(p.s. my background is in Fortran where the standard does not guarantee that all elements will be zero initially and one has to set all elements to zero explicitly if one desires a zero-initialized array. )
View 2 Replies
Mar 13, 2012
actually this is not an vb.net code belongs to vb..i have written it for getting the data from com port 1.but i dont know what data the com port is getting..
Dim Lng As Long
Dim lpPoint As POINTAPI
Dim X, Y As Long
[code].....
View 5 Replies
Jun 17, 2011
The following code works fine in VBA Goal of the code is to find (select) all cells in an Excel worksheet where the backgrounf cell color is Yellow (6) or Rose (38)
Sub SelectColorsViaArray()
Dim e As Variant
Dim r As Range
Dim x As Range
[code]....
3) With the above, I still do not understand how to integrate the Variant and Array differences from VB6 to VB.Net. I know what to do with all other like: Application.FindFormat.Interior.ColorIndex ... etc.
View 10 Replies
Mar 11, 2009
Hello!
i have programming XML files using XSLT. but i cannot add a button or links so that i can come with another solution such <xsl: if test = "salary > 1000"> ... and so on.
someone told me that i can use PHP and ASP for that. but i am interest to do it on ASP.NET since i have used it before.
i am a little bit confuse on it. can someone show an example where i can use ASP.NET to display the XML files according to what we want? what programming language that need to be use? VB.NET?
it is necessary to use the XSLT in the coding?.
thanks in advance
- Nazirul
View 1 Replies
Mar 22, 2009
I usedthe following code
CODE:
But recieved an error
To create hyperlink ...what namespace shud i use?
View 1 Replies
May 25, 2011
I would like to display formation when a user place their cursor on a radio button, the information is about a sentence long giving a description about that particular button. I guess this is possible and should I be looking at code for a pop-up box.
View 7 Replies
Oct 27, 2010
I am trying to fire off an FTP of files. I have broken down the code to the barest minimum. I have used the Shell Command with success before but the solution is now evading me.
Sub Main()
Dim strGetFileCommand As String
strGetFileCommand = ("c:\Windows\System32\FTP.exe -i -n -s:getcash.scr 10.113.1.7>113Log.txt")
Shell ("cmd /c" & strGetFileCommand)
End Sub
I can run the command from the c:> prompt at the command line so I know that it is correctly formed.
View 2 Replies
Dec 5, 2009
I need to select random checkboxes in a Tree view,which are retrieved from Database.My project is windows based and using WPf.In the Attachment i got only trreview but not checkbox
Checkbox_in_treeview.txt (2.09K)
Number of downloads: 339
View 4 Replies
Mar 31, 2009
I was writing this VB script to run in HTML for school and ran in to a problem, which my debugger says it is at line 33?
<html>
<head>
</head>
<body>
[code].....
View 4 Replies
Feb 21, 2010
I created this ASP.NET Web application and I can't get the amoritization table(MonthlyPaymentBox) to loop correctly. I think the problem is somehow in my code I am setting the TotalLoan = 0, but I just can't locate where that is happening. I assume this because instead of of starting the current balance at the users input, it starts at 0.
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="WebApplication1._Default" %>
<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 TransitionalEN" "http:www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
[code].....
View 4 Replies
Jul 14, 2010
Im very new and have found a solution which filter with on e grid but how do I manaipulate the Vb code to accomodate anothe industry filter.here's my ASP current code
<asp:GridView ID="GridView2" runat="server"
AutoGenerateColumns="False" CellPadding="4" DataSourceID="SqlDataSource2"
ForeColor="#333333" GridLines="None" DataKeyNames="Permit_No"
[code].....
View 1 Replies
Feb 21, 2009
I have a code in WFA as followslistviewmain.GetItemAt(MousePosition.X, MousePosition.Y)This used to work fine for WFA, but when I shifted to WFP, I get the error
Error48'GetItemAt' is not a member of 'System.Windows.Controls.ListView'.C:\Users\ameel\Documents\Expression\Expression Blend Projects\Media Library\Media Library\Window1.xaml.vb16959Media Library
[code].....
View 3 Replies
Oct 26, 2010
I want to execute a code after every 5 min.I am trying to develop the application in .net and using the C# as a backend language.My basic requirement is a C# code which executes after every 5min which i click a start button on my .net form.
View 6 Replies
Aug 20, 2009
how i can run .net framework on my pc tell me necessary requirements
View 3 Replies
Aug 13, 2009
I was just wondering if anyone had come across this issue before or anything. I just downloaded Visual Studios 2008 professional trial version (ISO) and when I try to run it or open it, I get a "The operation could not be completed. Access is denied." message. I tried doing everything.I disabled my antivirus, uninstalled a previous version of VS 2008, I still get this message.
View 4 Replies
Sep 19, 2011
I'm new here at Dream.In.Code, and this is my first question! To begin I would like to say I am new to Java but not new to coding, I am using Eclipse IDE 3.7 for Java and only have a basic knowledge of Java. I understand how it works; I don't know very much code... On to my question! I am wishing to create a simple JAR file for my own education/demonstration. Yet despite my searching and reading through my book I cannot find any relevant information about how JAR files are constructed. So, what defines a JAR file? How does one compile/make one?
P.S. I wish to work with JAR files because of their seeming simplistic nature and cross-compatibility. This is true, yes?My dearest apologies, I realise I posted this in the wrong forum. May a moderator move it for me?
View 5 Replies
Feb 20, 2010
I recently started working with Vb.net and I am just trying to create a class that has two properties one is StoreName and the other is StoreImage. What I am trying to do is figure out how to create objects using this class? Each object will be a Store that has a corresponding Name and Image to go with it. Here is the code I have written so far although I am not sure if im headed in the write direction with the function. Also not sure if it matters but I am using ASP with VB?
Imports Microsoft.VisualBasic
Public Class Store
Dim NameofStore As String
Dim ImageofStore As Image
[code]....
View 2 Replies
Mar 16, 2010
I have an internal ASP.NET / VB.NET CRM page that I would like to build additional functionality into.Currently we still use "Public Folders" in Exchange to store contact information for our clients.
What I would like to do is be able to connect to the Public Folders on Exchange through VB.Net in order to add new contacts or edit current ones.I would prefer to NOT have Outlook installed on the web server - (I say this because I tried working with Excel using COM and it was crap - ended up using Gembox.spreadsheet for all of my Excel needs).
View 3 Replies
Jul 20, 2010
Basically, I need to open the file from Textbox1.Text(this stores the path) and dump all the text into the string 'File'.
Example code:
Sub Button1_Click
OpenFile(1, TextBox1.Text)
[code].....
View 9 Replies
Oct 9, 2010
Macosxnerd101 - Site Feedback | Dream.In.Code?
View 7 Replies
Apr 23, 2011
I am trying to make a webform that will act as a "wizard". My problem is how to get the program started e.g. I want to ask the user a question and have them choose a radio button, then have them click a next button. when the user clicks the next button I want to use the radio buttons as a condition so for example if the user selected the "yes" radio button then the program will display some new labels and textfields or radio buttons and so on.
View 3 Replies
Apr 1, 2009
I have an image called Image1 I have a button called Button1 I have a resource called display1 Basically, I want the Image1 to show display1 when the button is clicked.I've frigging looked all over the net. I CANNOT find anything. All people "work around" my.resources. They just propose solutions that involve Uri and getting the resource from a file path. All I want to do, is use My.resources.display1 as the image.
[Code]...
View 2 Replies
Apr 14, 2009
what database i need to use for PDA application? EDIT: Title edited to be more descriptive
View 2 Replies
Feb 19, 2006
I've been trying to mess around with image recognition in C# for some time now. But to do that, I need acces to all the pixels in the bitmap individually. At the moment, I'm using getPixel and setPixel. It works, but it's VERY slow. Is there any faster way to acces pixels in a bitmap? Unsafe code maybe?
View 6 Replies