Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

Empty combo box in shapes choook


Duckman
 Share

Recommended Posts

Assuming you created an MFC DLL project using the default settings, you will already be using MFC as a shared DLL. However, MSVC defaults to an 8-byte alignment for member structs and a debug multithreaded DLL. You 'll have to modify that in the project settings (ALT+F7) to 1-byte and multithreaded DLL, respectively. Also, be certain to add MSWINDOWS and _MSVC_ preprocessor definitions. What version of Mastercam are you using? I've had problems with V7 and various MFC DLLs.

Link to comment
Share on other sites

when i go into debug, before I load the chook from mastercam, i get

 

error: symbol "m_create" not found

 

in the debug window...

 

but when i look at my member variables in the class wizard, there is a m_create for the combobox...

 

also, in the debug window, there are a whole bunch of

 

Loaded 'C:WINNTsystem32WSOCK32.DLL', no matching symbolic information found.

Loaded 'C:WINNTsystem32WS2_32.DLL', no matching symbolic information found.

Loaded 'C:WINNTsystem32WS2HELP.DLL', no matching symbolic information found.

Loaded 'C:WINNTsystem32WLDAP32.DLL', no matching symbolic information found.

 

[ 05-10-2002, 11:44 AM: Message edited by: Duckman ]

Link to comment
Share on other sites

Is your member variable, m_create, declared publicly in the associated header file?

 

quote:

Loaded 'C:WINNTsystem32WSOCK32.DLL', no matching symbolic information found.

Loaded 'C:WINNTsystem32WS2_32.DLL', no matching symbolic information found.

Loaded 'C:WINNTsystem32WS2HELP.DLL', no matching symbolic information found.

Loaded 'C:WINNTsystem32WLDAP32.DLL', no matching symbolic information found


Why is it trying load DLLs like WinSock? did you add a reference to those?

Link to comment
Share on other sites

yes, m_create is declared public...

 

I don' have a clue why it's trying to load winsock, I didn't add any references other than those indicatd in the manual..where can I check these references?

 

Another problem i am having is that the icons are no loading in the listbox..the words are there, but no icons...could the problems be related?

 

Thanks!

 

[ 05-10-2002, 12:19 PM: Message edited by: Duckman ]

Link to comment
Share on other sites

quote:

I don' have a clue why it's trying to load winsock, I didn't add any references other than those indicatd in the manual..where can I check these references?


Try looking in external depenancies.

 

quote:

Another problem i am having is that the icons are no loading in the listbox..the words are there, but no icons...could the problems be related?


I too had this problem before with V7 (it vanished when V8 was released). Mastercam appeared to use its own MFC DLL in its own directory ,and disregarded the one in the Windows System or System32 directory (PDG could verify this for us). If I tried to overwrite the one in the Mastercam directory with a more recent version from my System32 directory, weird MFC errors would happen such as missing images (ICO, BMP, etc.). A sometimes alternate solution I used was to declare the instance of the dialog (pre DoModal()) globally. To this day, I have no idea why it worked, but it did wink.gif

Link to comment
Share on other sites

where should the .ico files be located? right now I have a my C++ project in C:chook dev kitshapes

and the shapes.dll, *.ico and shapes.txt are located there...i tried moving all the files to C:mill9chook but it still doesn't work...

 

all your help is greatly appreciated!

Link to comment
Share on other sites

It doesn't really matter where the icons are located on your hard drive. Personally, I keep mine in the res sub directory of the project I'm working on at the time. You just have to make sure you import those files into the project. If worse comes to worse, you can always edit the paths manually in the RC file in the root directory of your project.

Link to comment
Share on other sites

and how do i do the DoModal()?

 

You'll need a call to DoModal() somewhere in, say, your main CPP file. Ex:

 

code:

// declare a variable for the dialog

CYourDlg dlgTheDialog;

 

if(dlg.DoModal() == IDOK)

{

// code to handle what happens if the user clicks OK button

}

else

{

// code to handle other stuff

}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...