Passing Pointers Between C And Visual Basic 2008
Oct 27, 2009
I'm trying to call C code in the form of DLL's from Visual Basic. When I do everything passed by value I have no issues. But what I really need is to return multiple pointers to arrays of sizes I don't know at compile time (so I'd have to dynamically allocate that memory). For instance
[Code]...
Here the array sizes are hardcoded but that's for the simple fact I didn't want to copy my whole algorithm over, in my actual code I wont know the array sizes at compile time. So my questions are these:How do I make the function declaration in Visual Basic 2008? How do I free up the memory in Visual Basic that these pointers point to?
View 3 Replies
ADVERTISEMENT
Aug 21, 2011
I'm trying to retrieve a record from access database on the basis of a string variable.
here is the code
Dim val As String( "kent")
Dim comm As Data.OleDb.OleDbCommand
comm = New Data.OleDb.OleDbCommand("select DISTINCT M_DATE_P from MACHINE_P where M_MODEL=" & val, conn)
i want to pass val variable, so that i can retrieve data at runtime.
View 3 Replies
Jan 17, 2011
In a while loop, I am writing a progressively increasing integer value (between 0 and 100) to the Value attribute of a ProgressBar control, when it disappears from the window in which it resides. I have verified at the time that it disappears that the Min is 0, Max is 100, and Value is a valid integer in range.
View 9 Replies
Mar 20, 2009
How do I disable the background compiler for Visual Basic in Visual Studio 2008?
For my sins, I have to work on a large VB.NET project and it often locks up for 20 seconds at a time whilst doing the very helpful background compilation
I'd rather work blind between compiles and be able to do some work.
View 1 Replies
Jan 22, 2010
I am trying to make a console program in Visual Basic on Visual Studio 2008. I want to ask the user of the program if he wants the premium version or the standard version. If he chooses the premium version, then I want it to say premium in his "receipt" later on and if he chooses standard, then standard in the receipt.
[code]...
View 1 Replies
Sep 26, 2009
I have Visual Studio 2008 Professional and I'm trying to make it so I can click a button to send the application to the System Tray and then click the icon in the System Tray to make the application come back.
Can anyone provide me a method or sample code to do this?
View 8 Replies
Jan 13, 2012
I am very new to Visual Studio Application Development. I'm mostly a DB guy. I used Visual Studio as a Report Designer, not much of an .Net guy though I can understand it. I am now asked to create a .net application and I'm trying to create a "Hello World" starter app. I opened my Visual Studio, click File-New Project and all I see is Business Intelligence Projects and Other Project Types. My step-by-step guide says choose Visual Basic, Windows Forms Application. But I can't see it as an option.
View 2 Replies
May 22, 2012
I recently loaded my copy of MS Visual Studio 2008 Standard Edition, with Visual Basic, on to my new laptop, one with a Windows 7 operating system. This version of Visual Studio had been on my other laptop, a Windows Vista machine. When I attempt to run any of my Visual Basic applications which has a MSFlexGrid container on it, I get this error message "Unhandled exception has occurred in your application... The error is: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG). Also,
View 2 Replies
Dec 19, 2009
whilst trying to debug a sample program, get error code bc 32400. Also error code Class 'CLSID_CorSymWriter' could not be created system error &H80040154&
View 3 Replies
Aug 22, 2011
I have been working on a game development program for a few days now. And have come to a halt on one part, and thats adding a 3D space in the program. I do not know the code for this, would some one please provide something i could use for adding 3D space in my project? for example, i have a panel set up to be the view port in to the 3D space. Now i need to figure out how to program it so you can see a 3D space, click on the mouse and drag and the grid will follow the mouse.Likecreate a grid, i wish to give it a grid of 150 x 150 grid pixles.
View 2 Replies
Jan 24, 2011
How do you extract source code from a VB.NET .EXE file?
View 3 Replies
Jul 21, 2011
I want to create a Windows Forms Application in Visual Basic 2008. I have created my form already, now I just need to add Caller ID capability. how to do this? Will I need any extra components? If so, where can I get them?
View 10 Replies
Jan 12, 2009
The code below is from Visual Basic 6.0. I need it converted into Visual Basic 2008 .net
I know VB.Net 2008 has the option to convert the code but im still having trouble with this:
[Code]...
View 3 Replies
Jun 9, 2011
I got one listview, and several items, and several picture box. And i want to make a relationship between picture box and listview.Like select the third item, and the picture box 3 show, select the second item and the picture box 2 show. All this in the same form.
View 5 Replies
Jan 26, 2011
I would like to use MSChart to display a line chart (X-Y plot with 2 array) on visual basic 2008. I am wondering if someone here can share working examples of using MSChart on VB 2008. In my program, I would like to read in 2 pressure array, each as function of time. Then, plot the pressures using MSChart.
View 4 Replies
Jun 15, 2011
I would like to see some example of using the reference VismLIB in Visual Basic 2008.I use in VB6 but am wanting to migrate my applications to VB.NET.
View 3 Replies
May 14, 2009
the problem is that I want to (SQL) select from a table in an Oracle database, and show the results of the query in the VB application, in a Excel like manner (rows, columns, selectable, etc.). Or in a SQL developer manner. Haw can I do that? Browsed through a lot of tutorials and howtos on the internet, did not get anywhere.
View 2 Replies
Feb 21, 2010
I was wondering if I could somehow binary coding, if not all coding of a file.In Visual Basic 2008, I use this method:I click a button on a form, I browse the file, I select itand then I click open and it fills a RichTextBox with 1 and 0's in binary form.. You know, drag a .exe file into notepad and you get random jiberish and inunderstandable characters.Well, this method does just that, BUT! It's waaaay to slow
Dim input As New System.IO.FileStream("File to get binary from.exe", IO.FileMode.Open) 'Create a new File Stream
Dim bytes() As Byte
[code].....
View 3 Replies
Jul 29, 2011
have a form that has a detail layout of my database which contain username and name and surname and etc. How do i create a button that when i have selected a row it should give me a report for that selected row an not for the whole database
View 5 Replies
Jun 6, 2010
I have created a hotel booking system programme. However, I am puzzled as to how when the booking button is clicked it can search a database and find the best suited room (RoomType) and make sure that it is available (Date of Departure < system.date). It must also assign the value of the cost that is placed in the combobox as the room.roomprice value.
[Code]...
View 3 Replies
May 24, 2009
here is the API written in C++:
c++
#define BMSAPI_WINDOWCAPTION "BMS Business Music System"
#define WM_BMSAPI_COMMAND 0x7fff
int BMSAPISendCommand(int iBMSCommand, LPARAM ExtraData)
[Code]....
I need it converted to Visual Basic .NET. I ran it through a converter but it wasn't very succesfull.
View 6 Replies
Feb 26, 2010
How to change the frame rate in Visual Basic 2008 Media Player? I have error: System.NullReferenceException was unhandled Message: Object reference not set to an instance of an object. IS there any way to fix this? Here's My Code
[Code]...
View 2 Replies
Apr 26, 2010
I have been given a task to:Develop a program where a child will be presented with picture of a fruit (one of five possible fruit) on the screen at the click of a start button. The child will then try to recognise the fruit and write its name in a specified place on the screen. On the click of a check button the name of the fruit written by the child will be checked by your program and if correct will reward the child with a suitable message. If the name presented by the child is not correct, a suitable message should be presented on a red background with the correct name of the fruit included in the message.
so far I have managed to create a form with 5 different fruit pictures and a text box below them. a button at the bottom of the form then checks the results and presents a message box to tell them if they have passed or failed.
[Code]...
View 1 Replies
Jun 20, 2010
When I have tried to run a program in vb 2008 I get the following error message BC32400: Class 'CLSID_CorSymWriter' could not be created: System Error &H8004015 I have tried to uninstall and re install visual studio 2008 (academic) (several times) to no avail.
View 3 Replies
Dec 4, 2009
I go to install visual basic 2008.. and it says that an error has occurred. and that .net framework 3.5 could not be installed? I've tried other programs like visual studio and visual c++ and they all do the same thing. and i've also tried directly installing the framework and it still wont work. Sorry if this is not the right place for this post but i couldnt find a tech support forum?
View 2 Replies
Aug 22, 2010
I need your suggestions and comments because I'm having problems in which database I will be using MySQL or Microsoft SQL Server.
Which database is easier to use? In terms of connecting the database to Visual Basic 2008
View 2 Replies
Sep 1, 2011
I am currently enrolled in the class. My final project for the class will generate random numbers within a range of numbers. For example, if I give the user five text windows to choose whether to input a number OR generate a random number, I will have a button called RANDOMIZE. Unfortunately, I do not know the line(s) of code for the random function.
View 2 Replies
Sep 23, 2009
I'm a college student and starting to use Visua Basic 2008.Unfortunately couldn't find the right algo for adding a database in vb 08. T_TMy problem is that how to add a database access 2007 in visual basic 2008.
View 3 Replies
Feb 27, 2009
I am building a business intelligence application for my organization. I have a form in which I would like to display existing excel spreadsheets. I have searched high and low for a control that would allow me to display a spreadsheet. Basically what I need is a viewer control that I can user to call the individual soreadsheets and display them in the form.I do not want to open excel outside of the application, but instead display the spreadsheet in the form as part of the application.
View 3 Replies
Jun 30, 2009
I have a form that contains a Textbox + Three sets of radiobuttons.
my project idea is to store in any database the values selected or entered by the user.
Textbox goes Name.
First set of radiobuttons are the job position - manager - superviser etc....
Second set "" "" the Period (Shift)- day - nite
Third set "" "" The Condition - part-time - full-time
Anyway, my problem is how to insert those values into a database, something very simple such as MSAccess (is possible?)
View 5 Replies