|
i am working with c# 2005 windows application.i referenced COM components and i need to debug the com components with .net
Can u please let me know quickly as i am unable to make a step where ia m getting error.
|
|
|
|
|
You cannot debug COM componenets in .NET. If you really want to debug, then you need to debug it in unmanaged environment. Say by using visual interdev and visual basic IDE.
|
|
|
|
|
The error message is below:
Error 4 The type 'Microsoft.DirectX.Direct3D.Texture' exists in both 'c:\WINDOWS\assembly\GAC\Microsoft.DirectX.Direct3D\1.0.2902.0__31bf3856ad364e35\Microsoft.DirectX.Direct3D.dll' and 'c:\WINDOWS\assembly\GAC_32\Microsoft.DirectX\2.0.0.0__31bf3856ad364e35\Microsoft.DirectX.dll' E:\CodeProject\SpinningNumbersClock\SpinningNumber.cs 29 18 SpinningNumbersClock
I do not know the reason!
Can you help me ?
Thanks a lot!!
bestyan 2006/10/13 ,from Jiang Su ,China
|
|
|
|
|
in your references add remove microsoft.directx
than add reference of microsoft.directx where version is not 2.0
OR
remove microsoft.directx.direct3d from your references
this error come because directx 2.0 have directx , directx.direct3d, directx.direct3dx, are included in same file
so you have a choice to either remove latest directx or the older other references
It is Good to be Important but!
it is more Important to be Good
|
|
|
|
|
Hi all,
Can anybody help me in creating a setup for my project that i have coded.
Please if there is any replies let it be a full path solution.
Lead me all the way till i see the setup file.
Thanks in advance,
jmail abou khalil
|
|
|
|
|
jamil abou khalil wrote: Lead me all the way till i see the setup file.
What documentation have you read on the subject? and what part did you get stuck on?
|
|
|
|
|
I am reading some documents.
But i didn't figure out how to make the setup file functional.
I am creating a setup file but it seems it is been created in a wronge way cause it is not working
jamil abou khalil
|
|
|
|
|
What exactly doesn't work?
WM.
What about weapons of mass-construction?
|
|
|
|
|
In the solution explorer select your project and than add a new setproject to it.
now u wll see some changes in solution explorer , a set project is attatched wuith your project in the solution explorer ,,,
now right click on setup project and add project primary out put to your project ,,,
now again right click on ur setup project and click on add custom function ,,
add custom function ,,, into your project output,,,now
select your project selct build menu, select configuration manager ,
and select release and check both project and your setup project or build,,,
now build your project ,,,
after builiding if it is compiled successfully ,,
now again right click on ur project and click on install
ok bye
hello
|
|
|
|
|
Hi all,
I'm having a horrible time trying to get text in opengl. I'm using the simpleOpenGlControl that comes with the TAO package and for some reason that means I cannot use the glutBitmapCharacter or glutBitmapString functions. I already posted on this, but I take it no one else has had the same problem as I had no replies.
Does anyone know of a way to eaisily render fonts in opengl? I've scoured the web and cannot find anything that works. There are various pieces of code out there, but none of them actually work. The closest I've come is the NeHe & Redbook tutorials, but I just cannot get my head around them. This is really driving me nuts. Please help.
|
|
|
|
|
It appears that the problem seems to be with Tao.FreeGlut and the simpleOpenGlControl. Whenever any function is called from Glut, the applcation crashes. Does anyone else know of this issue?
|
|
|
|
|
Hi, is there a way to make a form unclickable?
The idea is that when I show a form(Form2), I wont be able to click on another form (Form1)..
|
|
|
|
|
just call the showDialog() method of the form instead of show().
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
Thank you very much!! You're a genius more than once this year.
|
|
|
|
|
I'm trying hard to create a way to automate user administration on sharepoint and I got around to produce the following.
SPSite site = new SPSite("http://sharepoint/klantgegevens/" + groupname);
SPWeb web = site.OpenWeb();
SPMember member = null;
SPUser user = null;
bool found = false;
found = SharepointGroupExists(groupname);
for (int index = 0; index < web.Users.Count; index++)
{
if (web.Users[index].IsSiteAdmin)
{
member = web.Users[index];
user = web.Users[index];
break;
}
}
if (!found)
{
web.SiteGroups.Add(groupname,member, user, "");
}
But there's an exception coming from the web.SiteGroups.Add(..); call. It says Value does not fall in the expected range. Can anybody tell me where I could find more information on this call, especially some information on the exceptions it can throw.
WM.
What about weapons of mass-construction?
|
|
|
|
|
Problem solved for now. Hardcoded the Administrator user as the default user instead of determining it dynamically.
WM.
What about weapons of mass-construction?
|
|
|
|
|
dear programmers
how add context help by pressing F1 key
and how how to design the window. help required.
sikandar
|
|
|
|
|
Take a look at the HelpProvider component.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Hi
How to get a avi resource to resource file(.resX)
|
|
|
|
|
try to add an existing file option in VS 2005
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
How can I use a .NET dll in a C++ application?
|
|
|
|
|
Just use the C++ in the .NET environment. Install the Visual Studio .Net and use the C++ over three
jamil abou khalil
MSN: jamilaboukhalil@hotmail.com
|
|
|
|
|
Hello
Sorry! You can't! .Net dlls are managed code. You know you can call unmanaged code by P/Invoke, but not vice versa. If there is a managed code that you want to use, maybe you could make it a service or a commandline console application, then you can communicate with it from your C++ program.
Regards
|
|
|
|
|
I've searched some documentation and I was able to do it.
The trick is to register the .Net dll as a COM server.
But to be able to register it as a COM server you must first have a tlb file of it.
This tlb file you can create with the visual studio tool tlbexp.exe.
From the command prompt:
tlbexp dotNET.dll /win32 /out:dotNET.tlb
Once you have the tlb file you can use regasm to register the .Net dll as a COM server. You will not be able to run regasm from the windows command prompt. You must launch the visual studio command prompt to do this.
In the visual studio command prompt type:
regasm dotNET.dll /tlb:dotNET.tlb
From this point you can use the classes and functions of the .Net dll is whatever language that understands COM.
Kind regards,
|
|
|
|
|
Truely I solute you. I really urge you to write an article about it in CodeProject with more details. Many people will miss this old post. I've allowed myself to bookmark this post for future referal. Really brilliant.
Regards
|
|
|
|