• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Visual studio 2003 DIALOG -> DIALOGEX dialog not shown

New Here ,
Aug 08, 2005 Aug 08, 2005

Copy link to clipboard

Copied

Hi,

when using visual studio 2003 to edit resources, it changes DIALOG to DIALOGEX automatically for some reason (even when editing only the text on a button in the dialog). When we call 'Modal' from ADM's Dialog suite, the dialog is not shown in illustrator cs2 (but it does disable all menu's! So illustrator hangs).
This happens only when the dialog is declared in the rc file as DIALOGEX, not when it's declared as DIALOG.

Is this something in our code, or a illustrator bug, or something else? Any way to fix this (I can edit all DIALOGEX back to DIALOG by hand, but that's not a very good solution to me). Or is there a way to stop VC++ 2003 changing DIALOG to DIALOGEX?
TOPICS
SDK

Views

2.3K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
New Here ,
Sep 08, 2005 Sep 08, 2005

Copy link to clipboard

Copied

Hi!

I got the same problem and would also like to know if there is another solution than editing the resource with hand.

Cheers,
Stephan

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 08, 2005 Sep 08, 2005

Copy link to clipboard

Copied

Our current 'solution' is to use visual studio6 to make the plugin... Incredible that this doesn't get any official replies at all, I think. Seems like such a enormous bug that every plugin developer would run into to right away. Maybe there aren't any plugin developers ;-)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 09, 2006 Feb 09, 2006

Copy link to clipboard

Copied

Yes, this is extremely irritating. I spent an afternoon tracking it down myself.

Anyway, I wrote a simple python script that does a find and replace. I have it set to run as a pre-build event in Visual Studio. Here's the seven line python code (from memory - not tested):

f = open("foo.rc","r");
txt = f.read();
f.close()
txt.replace("DIALOGEX","DIALOG")
f = open("foo.rc","w");
f.write(txt)
f.close()

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 18, 2008 Jun 18, 2008

Copy link to clipboard

Copied

I'm using VS2008.

You need to add one line in "resource.h" file:

#define DIALOGEX DIALOG DISCARDABLE

press F9:
this cause error RC2112 : BEGIN expected in dialog

then double click on error:
manualy edit line :

FONT 8, "MS Sans Serif", 0, 0, 0x0
-> FONT 8, "MS Sans Serif"

And Recompile project!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Jun 18, 2008 Jun 18, 2008

Copy link to clipboard

Copied

LATEST
Yeah, this has been a problem for a long time. I just hand edit the file (including the DIALOGEX -> DIALOG), since as you point out, you need to alter the FONT line anyways (which I just entirely remove).

At one point I had a segex pre-build step that simply did all this for more, but somewhere along the line this got dropped from my project. I've filed a bug about this on a couple of CS* betas, but no dice as yet. The last time I did so, it was suggested to me to try EVE, which I will when I get a chance.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines