relative path to Win32 resource

Visual Studio .Net

    Next

  • 1. can't add control variable in VS .Net 7.0
    I have a large number of VC++ projects originally developed with C++ 6.0. Now in VS .Net 7.0, I can not add a control variable. The Control ID checkbox is greyed out. I do not use VSS. It would be good to find out why this is happening so I don't have to go back to MSVC 6.0 every time I need to add a control variable.
  • 2. How do I add new file template to Add Item dialog?
    I have a collection class template that I want to be able to add to projects with the Add Item dialog. I've got it appearing in the dialog, but it says "Class" under the icon and I want it to say "Collection Class". Does anyone know how to finish this last step? -- Andrew J. Marshall MCP (Visual Basic) Fairfax, VA
  • 3. Error loading property page in windows forms designer options page & Nullreferenceexception when adding forms to a project
    Well, weird things here. Brand new VS .net 2003 installation, no work done yet, i try to add a form to a new project, but i get a "NullReferenceException" error, and the designer comes up with a big red cross (red x) and white background. And i go to the options menu, try to open the windows designer -> general options page and i just can see this message: "error loading property page". I can't get to work ".net framework wizards" within administrative tools either. Fine. I uninstall VS .net 2003 and try to install a previous VS version, that comes whit .net framework v. 1.03705. Same behaviour. Can anyone tell me what is this all about? Any known incompatibility whith software or hardware is known to cause this? Has anyone had this trouble, too, and has managed to get rid of it? The issue is that I can't use windows forms designer at all, i can't load old VB6 projects , etc. (NOTE: the project with a new form -obviously a blank one, as i can't add any control- compiles fine, and the form is eve displayed -blank, i insist- on the screen) Funny, ins't it?
  • 4. Start Page items unavailable
    Hi! Some of the links on my Start Page are unavailable: Web Hosting, XML Web Services, Downloads, Headlines, Online Community. All I see is "This feature requires that you have connected to the internet previously or are currently online". However my internet connection is OK for other purposes and the "What new" link on the Star Page is working. Could it be some settings that need to be changed? Regards, Inge

relative path to Win32 resource

Postby Robert-Reinhold Gro » Tue, 09 Jan 2007 23:57:12 GMT

Dear lovely NG,

by using the properties of my C# project, i can add a Win32 resource.
But now i need to add this resource by using a relative path, but
everytime i try to insert something like ".\myresource.res" or
"$(ProjectPath)\myresource.res", i get an error.

Is this possible to add resources by specifing it with relative path?

Thanks.
Robert-Reinhold Gro

Re: relative path to Win32 resource

Postby Robert-Reinhold Gro » Thu, 11 Jan 2007 02:00:15 GMT

quiete easy. Just write "myresource.res".


Robert-Reinhold Groschrieb:
>> Dear lovely NG,
>> 
>> by using the properties of my C# project, i can add a Win32 resource.
>> But now i need to add this resource by using a relative path, but
>> everytime i try to insert something like ".\myresource.res" or
>> "$(ProjectPath)\myresource.res", i get an error.
>> 
>> Is this possible to add resources by specifing it with relative path?
>> 
>> Thanks.
>> Robert-Reinhold Gro

Similar Threads:

1.why relative hint path but absolute reference path

I have a vs.net 2002 solution that contains a number of projects
All projects are created in folders under the solution folder.
The idea here is that this entire solution should be 'moveable' ie. copied
to and useable from a new directory or computer.
And it almost is.

One project makes reference to an existing .net dll that also exists in a
folder under the solution folder.
The project file shows a relative hint path to the dll ie
"..\..\dllFolder\my.dll"
If I move the solution to a new folder and the open solution from the new
location, the dll can no longer be found.  if i restore the original
solution folder, the dll is once again found.  so obviously, although the
project file includes a relative hint path, vs.net is in fact looking for
the dll at an absolute location.  This is causing headaches as this solution
cannot be 'passed around'  without re-adding the reference to this dll.

is there some setting somewhere to get the relative path used ?
there does not seem to be any problem using relative project references - is
there some trick using a dummy project to get this to work ?

gerry



2.Get machine name path from relative or absolute path

Hello, is it possible in C#.Net to get a path to a file in the form
"\\Spain\Madrid\readme.txt" from a relative path i.e "readme.txt" or
from a absolute path in the following form "C:\Madrid\readme.txt" where
"Spain" is the name of the machine that the file is on? Thanks in
advance.

3.absolute path to relative path conversion

4.why relative hint path but absolute reference path

I have a vs.net 2002 solution that contains a number of projects
All projects are created in folders under the solution folder.
The idea here is that this entire solution should be 'moveable' ie. copied
to and useable from a new directory or computer.
And it almost is.

One project makes reference to an existing .net dll that also exists in a
folder under the solution folder.
The project file shows a relative hint path to the dll ie
"..\..\dllFolder\my.dll"
If I move the solution to a new folder and the open solution from the new
location, the dll can no longer be found.  if i restore the original
solution folder, the dll is once again found.  so obviously, although the
project file includes a relative hint path, vs.net is in fact looking for
the dll at an absolute location.  This is causing headaches as this solution
cannot be 'passed around'  without re-adding the reference to this dll.

is there some setting somewhere to get the relative path used ?
there does not seem to be any problem using relative project references - is
there some trick using a dummy project to get this to work ?

gerry






5.Project Output path converts to Relative path automatically

Hello there,

In the project configuration properties, whenever I change the
Build/Output path to a absolute path and close the window and If I go
there again I see it is automatically changed to a relative path. But I
want my project output to be a specific folder irrespective of where I
keep my solution.

For eg:
if I set the output path to "C:\Program files\MyApp\Bin" and apply it.
But If I go ther again it is changed to something like
"..\..\..\MyApp\Bin".

Does anybody have any idea why this behaviour is and how to change
this???

Btw, I'm using VS.NET 2003 IDE.

6. How to get absoulte path from relative path?

7. [API] Win32 Resources - List Icon Resource Names

8. Relative Paths and Class Libraries



Return to Visual Studio .Net

 

Who is online

Users browsing this forum: No registered users and 93 guest