Click here to Skip to main content
15,889,909 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: What makes a class IDisposable? Pin
Mark Salsbery13-Aug-07 9:51
Mark Salsbery13-Aug-07 9:51 
GeneralRe: What makes a class IDisposable? Pin
iddqd51513-Aug-07 9:55
iddqd51513-Aug-07 9:55 
GeneralRe: What makes a class IDisposable? Pin
Luc Pattyn13-Aug-07 7:00
sitebuilderLuc Pattyn13-Aug-07 7:00 
GeneralRe: What makes a class IDisposable? Pin
Mark Salsbery12-Aug-07 10:06
Mark Salsbery12-Aug-07 10:06 
GeneralRe: What makes a class IDisposable? Pin
George L. Jackson14-Aug-07 3:48
George L. Jackson14-Aug-07 3:48 
GeneralRe: What makes a class IDisposable? Pin
Mark Salsbery14-Aug-07 5:10
Mark Salsbery14-Aug-07 5:10 
GeneralRe: What makes a class IDisposable? Pin
Mark Salsbery13-Aug-07 4:53
Mark Salsbery13-Aug-07 4:53 
QuestionControl within a control help please [modified] Pin
Xpnctoc11-Aug-07 6:54
Xpnctoc11-Aug-07 6:54 
OK. I'm making a DLL with a bunch of Win forms controls. The project is in C++/CLI, compiled with the "/pure" switch.

I made a control that contained a TextBox, and two Panels. Each panel has a background image, which I set up using the BackgroundImage property in the "Properties" window. I built the project, the custom control shows up in my toolbox, life is good.

Now, I went to make a second control that uses multiple instances of the first. I added a new "User Control" item to the project and went into design view. I went to the toolbox, and tried dragging an instance of Control1 onto Control2. What an ugly error message:

Failed to create component 'Control1'.... Could not find any resources appropriate for the specified culture or the neutral culture. Make sure 'MyNamespace.MySubnamespace.Control1.resources' was correctly embedded or linked into assembly 'MyAssembly' at compile time, or that all satellite assemblies required are loadable and fully signed.

What the crap!!!???? I did a little research, and found an article that suggested the compiler was not creating the correct resource file. In fact, the only resource file I could find in the intermediate directory was "MySubnamespace.resources". Fine. So Visual Studio is too stupid to name its own resources correctly. So I selected the "Control1.resx" file, right-clicked and selected "Properties". I changed the intermediate file name to be "MyNamespace.Mysubnamespace.Control1.resources", as the error message seemed to suggest was required.

Guess what? I still get the same error message!!!! Can someone explain or point me to a GOOD article on what I'm doing wrong and how to resolve it?

By the way, I don't get that error message once I take out the panel background images. It's obviously a problem with linking the resource file that contains the background image data.

Thank you.


-- modified at 13:00 Saturday 11th August, 2007
Questionassignment vs default ctor Pin
swjam11-Aug-07 5:19
swjam11-Aug-07 5:19 
AnswerRe: assignment vs default ctor Pin
Mark Salsbery11-Aug-07 6:55
Mark Salsbery11-Aug-07 6:55 
Questionoperator++(int) Pin
swjam11-Aug-07 4:58
swjam11-Aug-07 4:58 
AnswerRe: operator++(int) Pin
Mark Salsbery11-Aug-07 6:58
Mark Salsbery11-Aug-07 6:58 
AnswerRe: operator++(int) Pin
BadKarma11-Aug-07 23:48
BadKarma11-Aug-07 23:48 
QuestionRTTI dynamic_cast Pin
swjam11-Aug-07 0:45
swjam11-Aug-07 0:45 
AnswerRe: RTTI dynamic_cast [modified] Pin
swjam11-Aug-07 0:51
swjam11-Aug-07 0:51 
QuestionIn C++/CLI, What has replaced LOGFONT and TEXTMETRIC? Pin
BuckBrown10-Aug-07 12:05
BuckBrown10-Aug-07 12:05 
QuestionHow do you get screen graphics into Document? Pin
BuckBrown9-Aug-07 9:54
BuckBrown9-Aug-07 9:54 
AnswerRe: How do you get screen graphics into Document? Pin
Luc Pattyn9-Aug-07 10:40
sitebuilderLuc Pattyn9-Aug-07 10:40 
GeneralRe: How do you get screen graphics into Document? Pin
BuckBrown9-Aug-07 11:05
BuckBrown9-Aug-07 11:05 
GeneralRe: How do you get screen graphics into Document? Pin
Luc Pattyn9-Aug-07 11:18
sitebuilderLuc Pattyn9-Aug-07 11:18 
GeneralRe: How do you get screen graphics into Document? Pin
BuckBrown9-Aug-07 11:40
BuckBrown9-Aug-07 11:40 
GeneralRe: How do you get screen graphics into Document? Pin
Luc Pattyn9-Aug-07 11:42
sitebuilderLuc Pattyn9-Aug-07 11:42 
Questiondirectx Pin
saisp8-Aug-07 18:22
saisp8-Aug-07 18:22 
Questionc++ projects Pin
Reet Dhiman7-Aug-07 23:43
Reet Dhiman7-Aug-07 23:43 
AnswerRe: c++ projects Pin
iddqd5158-Aug-07 3:26
iddqd5158-Aug-07 3:26 

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.