Click here to Skip to main content
15,909,242 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Scroll Bars Pin
BobInNJ10-Mar-09 4:19
BobInNJ10-Mar-09 4:19 
QuestionC HELP PLEASE!! [modified] Pin
posidonofthecode9-Mar-09 13:55
posidonofthecode9-Mar-09 13:55 
AnswerRe: C HELP PLEASE!! Pin
BobInNJ9-Mar-09 14:14
BobInNJ9-Mar-09 14:14 
GeneralRe: C HELP PLEASE!! Pin
posidonofthecode9-Mar-09 14:41
posidonofthecode9-Mar-09 14:41 
GeneralRe: C HELP PLEASE!! Pin
BobInNJ9-Mar-09 15:07
BobInNJ9-Mar-09 15:07 
AnswerRe: C HELP PLEASE!! Pin
David Crow9-Mar-09 15:58
David Crow9-Mar-09 15:58 
QuestionVBasic to VC++ syntax conversion Pin
Software20079-Mar-09 11:20
Software20079-Mar-09 11:20 
AnswerRe: VBasic to VC++ syntax conversion Pin
0x3c09-Mar-09 11:48
0x3c09-Mar-09 11:48 
For a start, the Draw function should come with a header file. If it doesn't, then load "PDF_In_The_Box.dll" using LoadLibrary(), use GetProcAddress() to get the address of the Draw() function, and call the function pointer (I think you may need to do an explicit cast here)

As for the rest:
String * 255 is a pointer to a fixed length char array of length 255 (I think it's a pointer, not sure here)
MsgBox just shows a box, it's easily ignorable
Long seems to be either a 32 or 64 bit integer - use int or long here
Stop is just a break statement

So overall the code looks a little like this

//Don't know how to declare the Draw() function
void CallBox(int aFunctionCall)
{
    //I'm not certain if the array bound specifier looks like this
    char[255] *msg;

    if(aFunctionCall == -1)
    {
        GetErrorMessage(msg);
        //Print the message some other way here
        break;
    }
}

char[255] *GetStr(long aBoxHandle, long aPropId)
{
    char[255] *result;

    CallBox(GetStrProp(aBoxHandle, aPropId, result));
    return result;
}

GeneralRe: VBasic to VC++ syntax conversion Pin
Software20079-Mar-09 14:51
Software20079-Mar-09 14:51 
QuestionApplication Type - DLL Pin
su_penguin9-Mar-09 10:59
su_penguin9-Mar-09 10:59 
AnswerRe: Application Type - DLL Pin
su_penguin9-Mar-09 11:03
su_penguin9-Mar-09 11:03 
GeneralRe: Application Type - DLL Pin
su_penguin9-Mar-09 11:40
su_penguin9-Mar-09 11:40 
GeneralRe: Application Type - DLL Pin
Iain Clarke, Warrior Programmer10-Mar-09 1:30
Iain Clarke, Warrior Programmer10-Mar-09 1:30 
QuestionIssue with localtime() Pin
Member 38480949-Mar-09 10:53
Member 38480949-Mar-09 10:53 
AnswerRe: Issue with localtime() Pin
Yusuf9-Mar-09 11:12
Yusuf9-Mar-09 11:12 
GeneralRe: Issue with localtime() Pin
Member 38480949-Mar-09 11:18
Member 38480949-Mar-09 11:18 
GeneralRe: Issue with localtime() Pin
Yusuf9-Mar-09 11:23
Yusuf9-Mar-09 11:23 
AnswerRe: Issue with localtime() Pin
Member 38480949-Mar-09 11:39
Member 38480949-Mar-09 11:39 
GeneralRe: Issue with localtime() Pin
Yusuf9-Mar-09 13:42
Yusuf9-Mar-09 13:42 
AnswerRe: Issue with localtime() Pin
Don Rummelhart10-Mar-09 11:25
Don Rummelhart10-Mar-09 11:25 
QuestionPath of Root and Virtual directory in ISAPI ? Pin
mmayur9-Mar-09 8:35
mmayur9-Mar-09 8:35 
QuestionDoubt on how the document object is retrieved to the application class in MFC Document View Architecture Pin
sarathbabununna9-Mar-09 7:55
sarathbabununna9-Mar-09 7:55 
AnswerRe: Doubt on how the document object is retrieved to the application class in MFC Document View Architecture Pin
David Crow9-Mar-09 8:26
David Crow9-Mar-09 8:26 
AnswerRe: Doubt on how the document object is retrieved to the application class in MFC Document View Architecture Pin
Iain Clarke, Warrior Programmer10-Mar-09 1:36
Iain Clarke, Warrior Programmer10-Mar-09 1:36 
QuestionScroll Bars and Input Fields Pin
BobInNJ9-Mar-09 7:44
BobInNJ9-Mar-09 7:44 

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.