I am trying to insert a variable in a SQL string but am not having any success in finding the proper sytax. I am coding in C++. Listed below is code section I am trying to figure out. This code is...
Type: Posts; User: mcertini
I am trying to insert a variable in a SQL string but am not having any success in finding the proper sytax. I am coding in C++. Listed below is code section I am trying to figure out. This code is...
I am currently trying to copy the contents from a single dimension array to a multiple dimension array using pointer notation. I though am having problems doing so. Can someone out there show me how...
Elysia,
This is the solution that was posted by WayneAKing in the Visual C++ Developer Center forum. This is his response to an error message I posted. This guy knows everything. My program is...
Mr. 777,
No they have different names.
I just recently tried to create a library and then use the library functions within a simple console application. I followed the instructions at:
Visual C++ Examples: Static Libraries
After...
I am currently trying to code a variable into a SQL string that is used with ADO to create a record within a database. I though am having problems with the proper syntax for a variable. The string...
Adak,
Thank you for your reply. I am a rookie programmer. I will follow your direction by memorizing the algorithm you posted. After further review, I now see how the iteration in the code...
Adak,
Thank you for your reply.
Posted on different site:
You are incrementing cyc unnecessarily in your for loop when you are copying.
try this
I put together a program that takes a list of numbers in an array and sorts them by copying out of the first array into a second array when the value in the first array matches the maximum array...
Bayint Naung,
Yes, I did note it and successfully converted with this conversion as well. Is this a better conversion?
Through research the following was derived from an MSDN website:
#define ARR 65500 //Total Records
#define TARGSIZE 11 //Field Length
char Date[ARR][TARGSIZE] = {};
...
Second version of strcpy is not necessary.
I am currently taking data from a database that is in the form of char data and attempting to convert to a string and then saving in a char array. It appears that these strings have to be saved in a...
R.Stiltskin
Excellent! It works great. Thank you for your help.
I am currently trying to convert a string that resides in a _bstr_t variable vFieldDate into a char array. I have found that I can type cast this via the (char *) with a variable I named holder...
Elysia,
It was put together in C++.
laserlight,
Thank you for your reply. As you state and what I have learned from another poster:
isalpha returns zero if the given character is not an alphabet.
Returns non-zero if it is...
In the below code, I am attempting to count the number of letters and number of words in a phrase. In researching the return values of isalpha(), I noted that when a letter is present the first...
Laserlight,
Thank you for your reply. The following includes corrections:
#include <stdio.h>
#include <conio.h>
#define Artichoke 1.25
#define Beets .65
In the below code I have put together a text example of a shopping cart whereby the user selects a commodity to purchase and based upon a menu selection, tells the program which leg in my switch...
nimitzhunter and tabstop,
Thank you both for your reply.
What I have learned is that first off, the input into the console screen needs to be a number and a space. When the numbers to be...
I am having problems with populating an array with int numbers. Since I am a new programmer, I do not know why my VS 2008 is not completing the code block. In other words when I execute the program,...
Jimblumberg,
Thank you for your response. This is my first program and I now I recognize the function scope issue. I recall from my study this issue.
Elysia,
Thank you for your response. I will remember to indent my code next time.
I am a newbie to C++ and am trying to pass an array to a function and then display the contents of this array through the function. The array is populated through a different function though both...