Click here to Skip to main content
15,917,971 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generaldynamic picture control Pin
7-May-01 19:51
suss7-May-01 19:51 
GeneralRe: dynamic picture control Pin
Christian Graus7-May-01 23:18
protectorChristian Graus7-May-01 23:18 
GeneralProject for everybody who want to participate Pin
BLaZe7-May-01 16:32
BLaZe7-May-01 16:32 
QuestionDoes anyone know how to do Audio Fading with Direct show? Pin
Bart-Man7-May-01 11:07
Bart-Man7-May-01 11:07 
QuestionLPDISPATCH problem ? Pin
latunos7-May-01 7:23
latunos7-May-01 7:23 
GeneralUnicode Windows ME Pin
Andy Shaw7-May-01 6:41
Andy Shaw7-May-01 6:41 
GeneralRe: Try this. Pin
7-May-01 11:47
suss7-May-01 11:47 
QuestionWhat is wrong with this code? Pin
mvworld7-May-01 4:20
mvworld7-May-01 4:20 
#include<stdio.h>

void callDllFunc(char *, char *, ...);

void main()
{
char *szDllName = "USER32.DLL";
char *szFuncName = "SetWindowTextA";
char szDataType[40];
int numArgs, counter;
void *receptor[20];

printf("Enter the number of arguments SetWindowTextA takes: ");
scanf("%d", &numArgs);

for(counter = 0; counter < numArgs; counter++)
{
printf("Enter the datatype of arguement %d: ", counter+1);
scanf("%s", szDataType);
switch(*szDataType)
{
case 'i':
printf("Enter an int value: ");
scanf("%d", receptor[counter]);
break;

default:
break;
}
}
}


I want to take a variable number of arguments of any time. The user in this case wants to call a function within a Dll and he knows the number and types of the arguments. My problem is how do I take those arguments from the use and pass them on to the Dll? (callDllFunc will take the name of the Dll, the name of the function, and the arguments to be passed to the Dll function)
GeneralUsing the ellipsis (...) Pin
mvworld7-May-01 3:52
mvworld7-May-01 3:52 
GeneralRe: Using the ellipsis (...) Pin
Chris Losinger7-May-01 4:07
professionalChris Losinger7-May-01 4:07 
GeneralDesparate for suggestions? ---- Some Toolbar Button Are Hidden Pin
7-May-01 3:49
suss7-May-01 3:49 
GeneralRe: Desparate for suggestions? ---- Some Toolbar Button Are Hidden Pin
#realJSOP7-May-01 4:13
professional#realJSOP7-May-01 4:13 
GeneralRe: Desparate for suggestions? ---- Some Toolbar Button Are Hidden Pin
7-May-01 4:36
suss7-May-01 4:36 
GeneralRe: Desparate for suggestions? ---- Some Toolbar Button Are Hidden Pin
7-May-01 6:14
suss7-May-01 6:14 
GeneralRe: Desparate for suggestions? ---- Some Toolbar Button Are Hidden Pin
7-May-01 10:37
suss7-May-01 10:37 
GeneralProblem with WriteFile and GetOverlappedResult Pin
fd97507-May-01 2:43
professionalfd97507-May-01 2:43 
General'for' statement can't work! Pin
hearties7-May-01 0:09
hearties7-May-01 0:09 
GeneralRe: 'for' statement can't work! Pin
#realJSOP7-May-01 0:46
professional#realJSOP7-May-01 0:46 
GeneralRe: 'for' statement can't work! Pin
hearties7-May-01 1:11
hearties7-May-01 1:11 
GeneralRe: 'for' statement can't work! Pin
#realJSOP7-May-01 1:24
professional#realJSOP7-May-01 1:24 
GeneralRe: 'for' statement can't work! Pin
hearties7-May-01 1:40
hearties7-May-01 1:40 
GeneralRe: 'for' statement can't work! Pin
#realJSOP7-May-01 1:50
professional#realJSOP7-May-01 1:50 
GeneralRe: 'for' statement can't work! Pin
hearties7-May-01 2:16
hearties7-May-01 2:16 
GeneralRe: 'for' statement can't work! Pin
#realJSOP7-May-01 2:50
professional#realJSOP7-May-01 2:50 
GeneralRe: 'for' statement can't work! Pin
hearties9-May-01 5:55
hearties9-May-01 5:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.