
August 6th, 2002, 12:39 PM
|
 |
Banned ;)
|
|
Join Date: Nov 2001
Location: Woodland Hills, Los Angeles County, California, USA
|
|
|
Just checking the obvious stuff here:
1. Is sInstalledProducts pointing to an actual string or not. You can't just do:
LPSTR foo;
function(foo);
because foo is a pointer to an array of char, not an array of char itself. You're going to have to point foo to an actual char array, otherwise you're only passing an uninitialized pointer to the function.
LPSTR foo;
TCHAR bar[100];
foo = bar;
function(foo); // Either use this
function(bar); // or this.
2. Also, I think you're passing your third argument incorrectly as well. Since your prototype is (HWND, LPSTR, int *), shouldn't your call also be:
int i = (*pFunction)(this->GetSafeHwnd(), sInstalledProducts, &dummy);
|