We help IT Professionals succeed at work.

just something to know... plz help

krydea
krydea asked
on

//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by dialog.rc
//
#define IDD_DIALOG1                     101
#define IDC_PROGRESS1                   1001
#define IDC_STATIC                      -1

// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        102
#define _APS_NEXT_COMMAND_VALUE         40001
#define _APS_NEXT_CONTROL_VALUE         1002
#define _APS_NEXT_SYMED_VALUE           101
#endif
#endif

and this:
//Microsoft Developer Studio generated resource script.
//
#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.h"

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// Dutch (Netherlands) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_NLD)
#ifdef _WIN32
LANGUAGE LANG_DUTCH, SUBLANG_DUTCH
#pragma code_page(1252)
#endif //_WIN32

/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_DIALOG1 DIALOG DISCARDABLE  0, 0, 186, 95
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Dialog"
FONT 8, "MS Sans Serif"
BEGIN
   DEFPUSHBUTTON   "OK",IDOK,129,7,50,14
   PUSHBUTTON      "Cancel",IDCANCEL,129,24,50,14
   CONTROL         "Progress1",IDC_PROGRESS1,"msctls_progress32",WS_BORDER,
                   7,59,163,14
   LTEXT           "Static",IDC_STATIC,13,13,60,8
   LTEXT           "Static",IDC_STATIC,13,28,70,11
END


/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//

#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO DISCARDABLE
BEGIN
   IDD_DIALOG1, DIALOG
   BEGIN
       LEFTMARGIN, 7
       RIGHTMARGIN, 179
       TOPMARGIN, 7
       BOTTOMMARGIN, 88
   END
END
#endif    // APSTUDIO_INVOKED


#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

1 TEXTINCLUDE DISCARDABLE
BEGIN
   "resource.h\0"
END

2 TEXTINCLUDE DISCARDABLE
BEGIN
   "#include ""afxres.h""\r\n"
   "\0"
END

3 TEXTINCLUDE DISCARDABLE
BEGIN
   "\r\n"
   "\0"
END

#endif    // APSTUDIO_INVOKED

#endif    // Dutch (Netherlands) resources
/////////////////////////////////////////////////////////////////////////////



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//


/////////////////////////////////////////////////////////////////////////////
#endif    // not APSTUDIO_INVOKED

with mnvc i made this but now i whant to control it normal with C or C++. it's for i filetranfer
app. the static are for the sended byt's and the total byt's..plz help controling dialog componet's...

btw: i'm 15 years old and this is just for fun. nut i need help else no fun:p. btw: does anny one got a tut about this? plz help..
carlos smith
Comment
Watch Question

Commented:
You haven't included any of the code from the dialog itself.  It will be called something like MyDialog1.cpp.  I don't understand what you're having trouble with.  If you're trying to change the static label to say something else, you will have to change its name from IDC_STATIC (say, to IDC_CHANGEDSTATIC).  Then just put this line in the dialog's code:

SetDlgItemText(IDC_CHANGEDSTATIC, "Changed text to this");

Author

Commented:
I don't know anything about dialog's.
BRONZE EXPERT
Author of the Year 2009

Commented:
When you got this file, did it come with some other files?  If one of those files has an extension of .dsw or .dsp you should be able to double-click that file in the Explorer and it will start Microsoft Visual C++ as an interactive program.

Do you have Microsoft Visual C++?

-- Dan

Author

Commented:
can you make a example and send it to Krydea@hotmail.com?
plz

Commented:
Make the example yourself - it's not very hard.  In VC++, select File->New->Projects->MFC AppWizard (exe) and then just follow the steps.  Otherwise, there are plenty of example projects available on your distribution of VC++ (try the scribble tutorial - also online at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vctutor98/HTML/_gs_scribble_tutorial.asp )

Could you tell us what the actual problem is?
BRONZE EXPERT
Author of the Year 2009

Commented:
Do you have Microsoft Visual C++?

-- Dan

Commented:
>>with mnvc i made this
I guess that's msvc?

Author

Commented:
yea i made it with the resouce aditor in microsoft visual studio 6.0.
i dno't know how i can control dialog item's that's the problem maybe you can help me <- i whant to learn how the control progressbar and static's and button's maybe by a example.. up i possed a resfile and a header file maybe you can help me with controlling that stuff?
or if someone got a tutorail that fine to..

Commented:
The files you posted above only tell us about where the label and progress bar are on the dialog.  The place that you'll put the code for controlling it will be in a cpp file, like I said earlier.  If you're a bit confused, start a new project, and add a new dialog to it:

Insert->New Class

On the drop down list, select class type "Form Class" and type a name of blahblah.  A class will appear in the class viewer on the left of the screen called "Cblahblah".  It will have a header file blahblah.h, and an implementation file blahblah.cpp.  You will also be able to edit the dialog in the resource editor.

In order to change the text of the label, use the code I wrote above (don't forget to change the ID of the label).  

Alternatively, you can create a member variable of the class Cblahblah which is linked to the one you see on the screen.  Right click on the progress bar in the resource editor, and select "Class Wizard".  Select "Member Variables" tab, and then choose the IDC_PROGRESS1, or whatever the name of your progress bar is.  Give it a name like m_progress, and it is magically added to your class.  Look for it in the class view on the left.

Then, in the code in the dialog class (Cblahblah), just fiddle with the control as you see fit:

// Set the range to be 0 to 100.
m_progress.SetRange( 0, 100 );
// Set the position to be half, 50.
m_progress.SetPos(50);

You can control the CStatic in the same way, if you want.  Look up the functions you can call on the classes CProgressCtrl and CStatic in MSDN.  

That's how you manipulate the controls (assuming you're using MFC).  If you need more help, ask.  If you don't understand a word I've written, say so.  For instance, if you don't know any C++, this is Jumping In At The Deep End.  If you have a *specific* question about how to do this, say so.

Good luck.

Author

Commented:
can can you say how i can do that with static

Commented:
Yup.  I assume you got it to work with the progress control?  

Change the ID of the label (you cannot interact with it called IDC_STATIC) to IDC_MYLABEL - right click it, select properties, type a new ID.

Then right click again, select class wizard, select member variables, pick IDC_MYLABEL from the list and press the "add variable button".  You have the choice of making the member variable of the class
a) CStatic - you have full control over the properties of the control
b) CString - you change the text, and the text on the screen changes.  You lose some control, but it is simpler.

I'll describe (b).  Select Category "value", and type a name for the CString - m_label.

Then, in the code for the dialog, you simply type

m_label = "Changed to this";

to change the text.

Author

Commented:
i'm now trying i found how i can add the class.
so i can nowjust include the dialog.h in my programme and just create etc.?

Commented:
In order to use a dialog you'll need the dialog.h, dialog.cpp, and link it to a description of a dialog in the projectname.rc file.  If you've done it the way I described above, it'll already be part of a project.  Otherwise, copy the *.cpp and *.h files into the directory of the other project, open up the project and then open those files, right click on them and include them in the project.  Also open the projectname.rc file (don't copy this file into the directory of the second project - it might include things you don't want) find the dialog resource you've created and drag it into the resource view on the left of the screen.  The dialog is now added to your project and ready for use.

In order to use it (perhaps this is all you meant - if so ignore the previous paragraph):

#include "dialog.h"
...
CDialog  dlgTesting;
dlgTesting.Create(IDD_DIALOG1) //returns 0 if fails

Author

Commented:
thanx,
i'm trying to make it.

btw:
>>You can control the CStatic in the same way, if you >>want.  Look up the functions you can call on the
>>classes CProgressCtrl and CStatic in MSDN.  

were do you find the functions for all of it??

Commented:
Well, if you've installed MSDN on your machine, then start it up (press F1 in VC++ will do it) and find them in there (type the class name into the index, or search down the contents tree to the relevant documentation).

Otherwise, it's all available online from http://msdn.microsoft.com/library/default.asp
I would give you the exact URL, but my connection is crawling along at the moment.

Commented:
Well, by MSDN I mean MSDN library.

Author

Commented:
can you plz.. give me the exact url..
when you got a better conection or when you got time, i can find it.
allmost all of the things on msdn is Bull **** :-p

Commented:
Progress control:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/html/_mfc_cprogressctrl_class_members.asp

static:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/html/_mfc_cprogressctrl_class_members.asp

You can find them from the tree control on the left of the page - Visual Tools and Languages->Vis Studio6->Vis c and C++->Product Documentation->MS Foundation Class library etc.

True, there's a lot of marketing hype on there - I spent forever trying to discover the internals of ATL, just spent days finding out how wonderful it was :-(  but it is the definitive resource for the MFC.

Author

Commented:
**** it does not work.. IainHere can i mail you my project?

the creating of the dlg does not work:(

here are the errors..
--------------------Configuration: mainDll - Win32 Release--------------------
Compiling...
hello.cpp
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(7) : error C2006: #include expected a filename, found 'identifier'
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(14) : error C2504: 'CDialog' : base class undefined
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(17) : error C2629: unexpected 'class ProgressDIalog ('
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(17) : error C2238: unexpected token(s) preceding ';'
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(21) : error C2065: 'IDD_PROPPAGE_SMALL' : undeclared identifier
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(21) : error C2057: expected constant expression
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(22) : error C2146: syntax error : missing ';' before identifier 'm_Progress'
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(22) : error C2501: 'CProgressCtrl' : missing storage-class or type specifiers
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(22) : error C2501: 'm_Progress' : missing storage-class or type specifiers
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(23) : error C2146: syntax error : missing ';' before identifier 'm_FileSize'
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(23) : error C2501: 'CString' : missing storage-class or type specifiers
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(23) : error C2501: 'm_FileSize' : missing storage-class or type specifiers
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(24) : error C2146: syntax error : missing ';' before identifier 'm_Plugin'
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(24) : error C2501: 'CString' : missing storage-class or type specifiers
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(24) : error C2501: 'm_Plugin' : missing storage-class or type specifiers
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(25) : error C2146: syntax error : missing ';' before identifier 'm_SendSize'
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(25) : error C2501: 'CString' : missing storage-class or type specifiers
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(25) : error C2501: 'm_SendSize' : missing storage-class or type specifiers
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(26) : error C2146: syntax error : missing ';' before identifier 'm_status'
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(26) : error C2501: 'CString' : missing storage-class or type specifiers
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(26) : error C2501: 'm_status' : missing storage-class or type specifiers
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(34) : error C2061: syntax error : identifier 'CDataExchange'
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(45) : error C2143: syntax error : missing ';' before '}'
C:\Windows\Desktop\cd\mainDll\hello.cpp(324) : error C2039: 'Create' : is not a member of 'ProgressDIalog'
        C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(13) : see declaration of 'ProgressDIalog'
C:\Windows\Desktop\cd\mainDll\hello.cpp(324) : error C2065: 'IDD_DIALOG1' : undeclared identifier
Error executing cl.exe.

hello.obj - 25 error(s), 0 warning(s)

Author

Commented:
**** it does not work.. IainHere can i mail you my project?

the creating of the dlg does not work:(

here are the errors..
--------------------Configuration: mainDll - Win32 Release--------------------
Compiling...
hello.cpp
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(7) : error C2006: #include expected a filename, found 'identifier'
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(14) : error C2504: 'CDialog' : base class undefined
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(17) : error C2629: unexpected 'class ProgressDIalog ('
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(17) : error C2238: unexpected token(s) preceding ';'
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(21) : error C2065: 'IDD_PROPPAGE_SMALL' : undeclared identifier
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(21) : error C2057: expected constant expression
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(22) : error C2146: syntax error : missing ';' before identifier 'm_Progress'
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(22) : error C2501: 'CProgressCtrl' : missing storage-class or type specifiers
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(22) : error C2501: 'm_Progress' : missing storage-class or type specifiers
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(23) : error C2146: syntax error : missing ';' before identifier 'm_FileSize'
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(23) : error C2501: 'CString' : missing storage-class or type specifiers
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(23) : error C2501: 'm_FileSize' : missing storage-class or type specifiers
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(24) : error C2146: syntax error : missing ';' before identifier 'm_Plugin'
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(24) : error C2501: 'CString' : missing storage-class or type specifiers
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(24) : error C2501: 'm_Plugin' : missing storage-class or type specifiers
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(25) : error C2146: syntax error : missing ';' before identifier 'm_SendSize'
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(25) : error C2501: 'CString' : missing storage-class or type specifiers
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(25) : error C2501: 'm_SendSize' : missing storage-class or type specifiers
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(26) : error C2146: syntax error : missing ';' before identifier 'm_status'
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(26) : error C2501: 'CString' : missing storage-class or type specifiers
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(26) : error C2501: 'm_status' : missing storage-class or type specifiers
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(34) : error C2061: syntax error : identifier 'CDataExchange'
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(45) : error C2143: syntax error : missing ';' before '}'
C:\Windows\Desktop\cd\mainDll\hello.cpp(324) : error C2039: 'Create' : is not a member of 'ProgressDIalog'
        C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(13) : see declaration of 'ProgressDIalog'
C:\Windows\Desktop\cd\mainDll\hello.cpp(324) : error C2065: 'IDD_DIALOG1' : undeclared identifier
Error executing cl.exe.

hello.obj - 25 error(s), 0 warning(s)

Author

Commented:
**** sorry it's: --------------------Configuration: mainDll - Win32 Release--------------------
Compiling...
hello.cpp
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(14) : error C2504: 'CDialog' : base class undefined
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(17) : error C2629: unexpected 'class ProgressDIalog ('
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(17) : error C2238: unexpected token(s) preceding ';'
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(21) : error C2065: 'IDD_PROPPAGE_SMALL' : undeclared identifier
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(21) : error C2057: expected constant expression
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(22) : error C2146: syntax error : missing ';' before identifier 'm_Progress'
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(22) : error C2501: 'CProgressCtrl' : missing storage-class or type specifiers
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(22) : error C2501: 'm_Progress' : missing storage-class or type specifiers
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(23) : error C2146: syntax error : missing ';' before identifier 'm_FileSize'
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(23) : error C2501: 'CString' : missing storage-class or type specifiers
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(23) : error C2501: 'm_FileSize' : missing storage-class or type specifiers
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(24) : error C2146: syntax error : missing ';' before identifier 'm_Plugin'
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(24) : error C2501: 'CString' : missing storage-class or type specifiers
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(24) : error C2501: 'm_Plugin' : missing storage-class or type specifiers
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(25) : error C2146: syntax error : missing ';' before identifier 'm_SendSize'
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(25) : error C2501: 'CString' : missing storage-class or type specifiers
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(25) : error C2501: 'm_SendSize' : missing storage-class or type specifiers
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(26) : error C2146: syntax error : missing ';' before identifier 'm_status'
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(26) : error C2501: 'CString' : missing storage-class or type specifiers
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(26) : error C2501: 'm_status' : missing storage-class or type specifiers
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(34) : error C2061: syntax error : identifier 'CDataExchange'
C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(45) : error C2143: syntax error : missing ';' before '}'
C:\Windows\Desktop\cd\mainDll\hello.cpp(324) : error C2039: 'Create' : is not a member of 'ProgressDIalog'
        C:\Windows\Desktop\cd\mainDll\ProgressDialog1.h(13) : see declaration of 'ProgressDIalog'
C:\Windows\Desktop\cd\mainDll\hello.cpp(324) : error C2065: 'IDD_DIALOG1' : undeclared identifier
ProgressDIalog1.cpp
C:\Windows\Desktop\cd\mainDll\ProgressDIalog1.cpp(4) : fatal error C1083: Cannot open include file: 'stdafx.h': No such file or directory
Error executing cl.exe.

mainDll.dll - 25 error(s), 0 warning(s)

Commented:
The main problem is with the #include "stdafx.h".  Is the first line on both *.cpp files
#include "stdafx.h"

Then in hello.cpp you'll need to
#include "progressdialog1.h"

If that doesn't fix it, then can you post the code anywhere for me to retrieve it?  Otherwise can you post the code here?  How large would the file be when you've zipped it up?

Author

Commented:
nope it still does not work:(

Author

Commented:
nope it still does not work:(

Author

Commented:
you can download the zip it's 31 kb
www24.brinkster.com/2krydea/mainDll.zip

Commented:
I'm looking at it.  There are lots of mistakes.  Firstly, this was not an MFC application, so there was no stdafx file.  I've thrown one together, but I still can't compile it because I think there are some other files missing.

Go into project->settings->General and select "use MFC in a shared dll" or linked.  You weren't using MFC.

You haven't given me the lib files, so I can't link it, but I've fixed a load of problems, mainly syntax and missing includes.

I'll send you what I've done if you give me an email address (please don't respond do the address it comes from... thanks)

Commented:
Incidentally, that'll be #40 :-)

Author

Commented:
krydea@hotmail.com,
yeah it must me multy thread! and the winscok

Author

Commented:
btw: did you saw it was a dll and is the project now a mfc dll project? so not a normal appliaction mfc project?

Commented:
It's still a dll (not an exe). All I did was what I described above - you can do it on your own so that you understand what has been done.  The key thing is using MFC, which you weren't earlier, but things like CString, CProgressCtrl, CDialog etc are all obviously part of the MFC.

The forms you added referenced "stdafx.h", which would have been added to your project had you made it an MFC dll.

I would strongly suggest that, if you want to use MFC, that you work through the scribble tutorial (or read a book or something).  What you're doing here would make a lot more sense to you if you take a couple of hours out to make a simple test MFC application and play with it.

Author

Commented:
k, i'm home again from school so i'm starting on it again!
You've GOT to be kidding me.  IainHere, you have the patience of a saint.  I would have told this guy to pull it together and buy a book half way through all this.  

Krydea - go and buy C++ for dummies, then buy Visual C++ for dummies.  You simply do not have the skills necessary to learn in a forum like this, you need to be able to crawl before you can walk.

Author

Commented:
i can programme C++ as hell but no ****ing mfc i programme API no MFC

Author

Commented:
btw: yeah thanx IainHere  for the pasaint and as you can shee there are pasterds on E.E to!

Author

Commented:
* basterd's

Commented:
Christian:
Yeah, I was beginning to wonder when I was going to get the points  : )

krydea:
You'd better cut down on the expletives - there might be children listening.

Commented:
krydea:

Normally, this forum would be for specific questions, as you've noticed (I see you've asked 40 questions).  Even though this question wasn't specific, I thought I'd give you a hand and explain a few things along the way.  As Christian and I have both said, a book would probably be your best bet (or else that scribble tutorial I've been going on about : )

You *really* have to stop using offensive words - and flaming.

Author

Commented:
lol,
i'm one.. but sorry.
and IainHere you get the point's so fast as i compiled it.. but i get  73 errors of :
ProgressDialog.obj : error LNK2001: unresolved external symbol __afxForceSTDAFX

what's that?
btw: i'm gana give more point's case you helped me verry good.. all that i have.
ROTFL IainHere.

krydea - chill out.  If you have Win32 skills, they are not in evidence.  You should know that you need to write a class to use a dialog template, MFC or not.  MFC actually makes it far easier by encapsulating all the stuff you need to do in Win32 to get a dialog up, especially the dialog procedure side of things.  

If that is the case, then perhaps you need just to read some of the MFC tutorials in MSDN, you certainly are having a hard time grasping it for someone who can program the API 'like hell',

I wasn't trying to offend or insult you, I seriously meant that your posts seem to indicate someone who doesn't know any C++, and that your next step is not to try and write Windows programs, but develop the skills to be able to understand the sort of advice you will get on these sorts of forums.  I'll let you in on a secret - someone gave me the same advice once, and every day as I go to work ( programming C++ for Windows ) I am thankful he gave it, and that I took it.
ROTFL IainHere.

krydea - chill out.  If you have Win32 skills, they are not in evidence.  You should know that you need to write a class to use a dialog template, MFC or not.  MFC actually makes it far easier by encapsulating all the stuff you need to do in Win32 to get a dialog up, especially the dialog procedure side of things.  

If that is the case, then perhaps you need just to read some of the MFC tutorials in MSDN, you certainly are having a hard time grasping it for someone who can program the API 'like hell',

I wasn't trying to offend or insult you, I seriously meant that your posts seem to indicate someone who doesn't know any C++, and that your next step is not to try and write Windows programs, but develop the skills to be able to understand the sort of advice you will get on these sorts of forums.  I'll let you in on a secret - someone gave me the same advice once, and every day as I go to work ( programming C++ for Windows ) I am thankful he gave it, and that I took it.

Author

Commented:
k thanx.
it's so that i my compiler i used to now is lcc win32  and that i just got MVS 6.0 and that i did not understand how to do thing's in it.. but sorry i will. thanx for you advice! and btw: hell is bad so i programe API bad but i can do all of the creating and handeling but not the dialog thing's;)

IainHere : plz help me out with the compiling.
Commented:
I think you're ignoring default libraries - so it's not linking, and not finding the function it wants (afx == application framework, granddaddy of MFC).

Project->Settings->Link->Ignore all default libraries (ensure this check box is deselected)

Commented:
Christian:
I see you were born yesterday (so to speak) - EE has a problem with refreshing a link when you've typed a comment - use the reload button at the top.  See you round.
LNK2001 means you either have the header but not the cpp file for something, or the .lib file for an external library is not included in your project settings ? You never came across this in your Win32 programming ?

Anyhow, I don't know what AfxForceStdAfx is, and neither does MSDN.  It's obviously to do with the stdafx, are you using precompiled headers ? Are they in order ? It sounds like your project is a real mess, why don't you start over ? Create an MFC dialog based application and put a couple of buttons on it for the dialogs you want.  It sounds like a 20 minute project.  You just create the templates, double click on them to create a class, and handle the messages for the controls through the class wizard.  MSDN is loaded with info on this sort of basic stuff, so are books like Teach Yourself Visual C++ in 24 Hours.  

Author

Commented:
YOOOOOOO it work's :-)
Yeah, so I notice.  I didn't even realise I'd pressed post twice.

krydea - if 'like hell' means bad, then seriously take my advice and buy a couple of books.

Author

Commented:
thanx guy's
ChristianGraus: what kind of work do you do-> programming C++ windows duhh but what?

IainHere : thanx for you pataint! i'm just 15;)

Author

Commented:
i had that to with the errors that i post:p

Author

Commented:
IainHere : thanx i know aload about the mfc dialogs now case you. realy thanx!

Commented:
:-)