Thanks for that. I guess for storing the table data, I'll just create an array of MULTI's, as large as the number of columns in the table. Cheers.
Type: Posts; User: Morgan
Thanks for that. I guess for storing the table data, I'll just create an array of MULTI's, as large as the number of columns in the table. Cheers.
I need to work out a way of storing in a structure the data from a table whose number of columns and column datatypes are unknown. As a first step, I'm trying to work out a way of storing data in...
All my problems solved.
Thankyou.
Hi. I'm trying out the MSMQ API using VC++ v6 on NT4. I have written the following code, and I seem to be managing to both open and peek at the queue, but I don't get intelligible responses when...
Thanks again!
Thanks very much for your help. I did search the Microsoft site, but didn't find the page you've posted - it's worked a treat!!
Thanks for the conn.udl tip aswell, that's actually really handy!
I've written a program which uses the following code to open a database -
#include "afxdao.h"
...
CDaoDatabase daoDb;
daoDb.Open( strFullDBName );
When I pass the name of an Access...
Thanks.
I looked up usage of WNetAddConnection2, and have got to the stage where I can get the code to compile and run. The following excerpt always results in an error (no. 487)...
Hi. I am having to write a program which connects to an Access database across a network, on another domain from the one in which the program runs. Therefore, I need to provide network credentials in...
Oh yeah... and
if(numlives>0);
is wrong too - lose the semi-colon.
There are a few syntax errors...
int templives - missing semi-colon.
scanf( "%s", &name1 ); - remove &.
scanf( "%s", &name2 ); - remove &.
(name1 and name2 are arrays of char, which can be...
Sorry DrZoidberg, I've been a dope. Didn't read your code properly...
So your trying to isolate the 'units' digit, remove it from the original number, then multiply it to the order of the original number and add it back on?
Nice idea, but I don't think your code is...
You could use a linked list, and make it circular by linking the tail node back to the head node.
In your case, each node would contain an integer between 0 and 9, and a pointer to the previous...
Look here
I've done something similar to this before, but using curses on Unix, so I can't help specifically with the syntax. However, what I suggest is to get the user input one character at a time, instead...
You also need some extra brackets in your while statement..
while( ( ch = getchar()) != '\n' )
{
...
I compiled your code without the brackets (but with the other corrections)...
Also... if you want to write a function which alters mulitple variables from the calling function you can just pass pointers to those variables instead (obviously multiple return statements from a...
Ok, look at these examples...
#include <stdio.h>
#include <string.h>
int main()
{
char answer[100], *p;
I think your better off not thinking in terms of your objective as a database. What you want to do is store all of the data that your GUI needs in such a way that you can retrieve it reliably.
...
The best way would be to avoid scanf entirely. I would use fgets to capture everything that the user typed, then use strtok to split the string up into individual words, based on the assumption that...
I think you're just trying to do too much with this statement, and end up doing nothing that you intended. I would advise slowing down a little. Try this instead...
printf( "Enter a...
You are completely misusing sscanf. This should be quite straightforward code. Try this...
#include <stdio.h>
#include <string.h>
char * get_word( void );
int main()
This original experiment has nothing to do with writing formal commercial code. I was playing games with C, just doing something unusual in code and seeing what would happen next. Ths stuff about how...
Looks like Quzah has beaten me to it, but I was going to recommend you do this...
printf("\nUsage: %s <remote_os>"
"\n\nwhere os:"
"\n1 - win2k sp3 ru"
"\n2 - winxp...