Just so that everyone knows, i am not using Cbuilder for this. My IDE does not have date/timediff functionality.
I am having some difficulty determining how to get the difference between 2 times. The times are stored as hex values. When I treat the times normally, as integers, and convert...
what I actually was using was the oledbConnection and the oledbDataAdapter and yes i was using the drag and drop components. I did manage to solve my problem. The oledbDataAdapter doesnt really like paramaters in its queries, so once i took out the paramaters and directly accessed the data i...
I am a relatively new user to VB.NET, but have worked extensively in VB 6. In my program, using the server explorer, I have created an sqlconnection object and a data adapter for each table in my database. The problem I am having comes when I try to use an insert command to insert a new record...
I have an application that uses several forms during the course of running. When I try to manually load any of these forms visual basic gives me the error:
"Invalid Use of Property"
the code for loading looks like this:
Load KeyForm
Load FileForm
Load ListForm
from everything that I have...
Im not entirely sure if this is the right spot for this question or not, but I guess Im going to ask it anyhow.
In the packaging wizard, when it gets to the point where you can determine where additional files are installed, it gives me a number of macros that I can use to determine what...
thanks for all your ideas guys. I came across one of my own as well while trying to figure this one out.
Do While (Not adoRec.EOF)
If (Len(adoRec!unit_number) > 0) Then
ListForm.List.AddItem (adoRec!unit_number)
End If
adoRec.MoveNext
Loop
by...
I have a program where I need to connect to a data base and pull a number of records out based on a certain criteria. I have managed to successfully connect to, and open the database, and return the required data into my recordset. This is where I begin to have problems. How can I extract the...
I actually realized that the personal edition doesnt include any of the components that I need... grr...
so i tried using visual studio, but realized that ADO is kind of complicated there, so i ported the code into VB6 and have pretty much got it figured.
Thanks though
I am using BCB6 and I have installed the MSADO component (6.0) into the package dclusr, compiled it, and installed it. Everything was fine when i placed the TAdodc component on my form, and everything compiled fine. As soon as I went to run my program, i recieved the error:
"The procedure...
I managed to solve my problems. I changed the way that my code worked. Instead of having the function do all the reads in one call, the function call is setup in a while loop, and i just use fseek to set the file pointer to the correct location.
Thanks for all of your help. I was having some...
each record is 160 characters in length. i was unaware that fgets actually did infact need space to put the null byte. It doesnt make any difference anyway, as the last 6 characters or so are never used. And yes all records are stored on the same line. and the extra % that was hidden in there...
I am using the fgets() function to read from a file. I am fairly sure that this file is all stored on one line, but when I open it in notepad, its broken into several.
Anyways my problem is that on the second read from the file i am recieving this error:
"Access violation at address 7C901095...
I am trying to declare a vector of structs.
i have a header file that has definitions of all my structs and a typedef associated with them.
for some reason this does not work:
vector<HEADER> h;
where HEADER is equal to:
typedef struct header{
char record_type[2];
char...
I am using turbo C++ explorer vs 10, and am unable to figure out how to import activeX controls.
I need to be able to use the MSComm object, but my ide won't read .ocx files. The file im trying to import is
"MSCOMM32.ocx"
including the file doesn't work either.
Is there a way to include...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.