|
|
Some other issues I noticed from reviewing the above:
- You are mixing
strcpy() and memcpy() calls. This will cause problems if you want to convert this to Unicode in the future. - Similarly you are using a
LPBYTE pointer instead of LPTSTR . Your code is manipulating characters so all pointers should be character types, not byte. - In the second
case clause, in both blocks you are prepending two characters to the buffer, but you are not adding two to the *pcb value to take account of this. - In the same place, you are using
memset() to initialise the buffer with 135 spaces. This serves no purpose, but to waste time and code.
Whether fixing the above gets you closer to a solution, only time will tell.
Use the best guess
|
|
|
|
|
Forgot the WS_VISIBLE style in my resource file sorry for wasting your time ill make the changes you
Pointed out
Thanks
|
|
|
|
|
I don't see how that has anything to do with either your original question, or the code you posted.
Use the best guess
|
|
|
|
|
|
If you own the book, why not just type the code in? Copy/paste bulk code is a sure fire way to not learn something.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
Look in the book and there will be a section somewhere (often near the end) which gives the link for the source code.
Use the best guess
|
|
|
|
|
Also some books have CDs with them. Check whether the book you're referencing provides one.
|
|
|
|
|
|
|
hi guys,
If i create one character array of some size like,
char* TempArray[10];
how do i intialise it???
|
|
|
|
|
That is not a character array, it's an array of pointers. You need something like:
char foo[10] = "string";
char* foo = "string";
Note: Your signature is too big.
Use the best guess
|
|
|
|
|
nop i need array of charecter pointer??
not normal pointer above example that you have given is normal character string i need array of characters string.
And i will change my sign;.
|
|
|
|
|
Coder Block wrote: nop i need array of charecter pointer?? That's not what your original question asked for.
char* foo[10] =
{
{ "string1" },
{ "string2" },
{ "string3" },
NULL };
And your signature is still too big; use the standard font size.
Use the best guess
|
|
|
|
|
you can initialise the array just like this
char *TempArray[10] = {NULL};
|
|
|
|
|
Coder Block wrote: char* TempArray[10];
you have initialize every array item individually like this
char * temp[10]={"1","2"......};
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
sqlite3_prepare16_v2(dbfile,Query,-1,&statement,0);why does this statement return error value where WCHAR Query[256];
wsprintf(Query,_T("insert into file(FilePath) values('%s')"),dentry->FullPath);
why am i getting the error..plz anybody help me
|
|
|
|
|
What error?
Use the best guess
|
|
|
|
|
What error code does sqlite3_prepare16_v2() is returning? Also check whether you're using sqlite's all the 'V2' interfaces consistently (as I see you using sqlite_prepare16_V2()). For error code details have a look at this[^].
|
|
|
|
|
How to overlay an icon over existing shell objects in 3 easy steps
i wanted to know to how to run the codes after downloading it from the above link ....i even tried with the steps but a error
rror C2653: 'CCOverlayProvider' : is not a class or namespace name came....n in the step 1 i m even having a doubt in
"Before moving to step two, which is about implementing an IShellIconOverlayIdentifier interface, you need to add a new icon to your resources. " what is exactly meant by resource here
|
|
|
|
|
You should post this question in the forum at the end of the article, so the author can help you.
srikrishnathanthri wrote: what is exactly meant by resource here Resources are icons, menus, bitmaps, dialogs etc, that are coded into your project's .rc script file, built within Visual Studio (see http://msdn2.microsoft.com/en-us/library/aa380599.aspx[^]). You really need to spend time learning about the individual components of a Windows C++ application before working on a project such as this.
Use the best guess
|
|
|
|
|
Hi,
I rebuild my MFC app changing the platform to X64
while testing it out on a SendWindow I got a exception invalid *_ptr64 7EFD7D9E5D at location
2DFBB0 my question is are there any special consideration running a WIndows MFC app 64 bit mode
thanks
|
|
|
|
|
ForNow wrote: my question is Your first question should be "where did this pointer's value come from?". Use your debugger to find out where the error occurs and see if you can figure out why the pointer contains a bad value.
Use the best guess
|
|
|
|
|
Thought it was a 63 bit issue but its not
As both wparam and lparam translate to 64 bit values
Thanks
|
|
|
|
|