Windows Develop Bookmark and Share   
 index > Windows Forms General > Resource Linking/Namespace Problems
 

Resource Linking/Namespace Problems

I am creating a Notepad-style application. It is almost completely done, except for printing.
I used the C++ ref here and in a blank application, it worked fine. However, in order to make it work with my application, I had to unlink all the images/icons and any info stored in my resX file, becuase otherwise I would get an error. The print code only works without a namespace header (ie namespace NAMESPACE { ) and when I add one, it gives me hundreds of errors from random .h files such as sourceannotations.h. This only occurs when the RichTextBoxPrinter class is included in the main form header code.

Pretty much my dilema is that I can run the program either without print working, or without any icons, or the text in my help file. I made sure the text was copied correctly, and this same problem happened with the black project, but because that had no icons or and data to link, it worked fine.

Any idea as to how I can both link my data and printing, or how to make it work with a namespace header so the resources can actually link?

Any help is greatly appreciated as always.
Takaian  Wednesday, June 11, 2008 7:38 PM

how does this errors look like? maybe we are also lucly and nobugz will take a look at this thread, as he is the one who wrote the printing function in the link you've posted... though it seems to me that is the same with the code over here.

anyway, please copy/paste some of the errors you recieve.

Lucian Baciu  Friday, June 13, 2008 1:17 PM
This is the only error I get now. Only happens when including resources to link. Otherwise all images are blank.

Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "Form1.resources" was correctly embedded or linked into assembly "FastType" at compile time, or that all the satellite assemblies required are loadable and fully signed.


Takaian  Monday, June 16, 2008 5:09 AM

Takaian wrote:
This is the only error I get now. Only happens when including resources to link. Otherwise all images are blank.

Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "Form1.resources" was correctly embedded or linked into assembly "FastType" at compile time, or that all the satellite assemblies required are loadable and fully signed.


see this thread.

Lucian Baciu  Monday, June 16, 2008 8:06 AM
That is not exactly the problem. That would be how to get it back to a proper namespace, which I know how to do becuase i purposely changed it myself. I need to know if it is possible to link resources without a namespace.
Takaian  Thursday, June 19, 2008 10:39 PM

I have the same issue at the moment - did you ever solve the problem?

Can you tell me how to ensure resourcesare linked to a given namespace? I'm just using the VC++ Express 2008 integrated developers environment and trying to assign images to pictureboxes etc. but I just use the properties window to select the image I want??? I don't know why this doesn't ensure the linking happens automatically?

Can you help?

Cheers,

Daniel

WhyNotSuggestANameThen  Thursday, June 26, 2008 7:58 AM

You can use google to search for other answers

Custom Search

More Threads

• sequence of methods attached to an event
• ComboBox SelectedIndex Crashes my program
• DataGridView AutoGenerateColumns=false bug
• drag and drop with visual c# 2005 express edition
• RichTextbox with Right Margin
• How to remove the ctrls at a time from a form or panel ?
• Querying random number of elements, LinQ
• Control in Toolbox - Debug or Release?
• Software Application Development in Minimum Time
• How to create an auto-hide, dockable toolbar like Studio 2005?