|
|
Hello!
I'd like to copy a folder (without files). After creating in the destination folder I want the directory to have the same user-/group-permission like the source-folder.
does somebody have an idea?
|
|
|
|
|
Hi!Dear,
I released my c# project usbtest(Cs) and got the usbtest(Cs).exe.There is no problem when I run it on my own WinXP PC,but when I run it on other's WinXP PC or Win2000 PC,then error occurs:
Win2000:error name:usbtest(Cs).exe--cannot find DLL
error content:can not find DLL mscoree.dll in the appointed path. F:\;.;C:\WINNT\System32; C:\WINNT\system; C:\WINNT;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem
WinXP: error name:usbtest(Cs).exe--application error
error content:application normal initialization (0xc0000135) fail.Please click "OK" to terminate application.
Can you tell what makes this error and how to work out it?
Thanks!
momer
|
|
|
|
|
|
Hi!
Sorry for posting in multiple boards, but my post in the C# board gave no replies what so ever, so I thought I give it a try here too.
I´m working on a project where we are making a hook for an other software. Now we have encountered a problem and I would like some help on finding a work-around.
When we are opening a new form in the hook an exception is thrown and the form is destroyed. The exception is a System.TypeInitializationException that says that "The type initializer for "System.Drawing.SafeNativeMethods" threw an exception. -->System.NullreferenceException: Object reference not set to an instance of an object".
I have traced the exception into the InitializeComponent() method and it is thrown when the first component on the form is initialized. This exception does not appere every time, but once in a while. I can not see any real reason for the problem and we are not doing any different when it works and does not.
I have searched the net and found others that have had the same problem, mut I have not found any good solution. The problem seems to be in GDI+, at least that is what how I have understod it when reading posts on other forums..
The application loading the hook is creating appDomains for all hooks so that it can unload them as it whishes, I think that this might be the root of the problem, or? We would really need to show this form, its for configuring the hook, and the main application really needs to unload the hooks now and then, so the problem is a fact.
Is there any good work-around for this? Is there anything we can do to solve this problem without having to make changes in the main application?
All help appriciated!
Regards Mikael
|
|
|
|
|
the Visual Studie dev environment will not list the contents of the GAC in the add references dialog.
If you are developing dlls that you wish to distribute and have others reference then there are some steps that you need to perform.
If the assembly is shared (installed to the GAC) then you need to install a copy of it in another directory. This is what happens when you install the .net Framework. (reason follows later)
For Visual Studio to automatically show your DLLs in the add references dialog, add the following registry key.
HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\.NETFrameWork\AssemblyFolders\SomeName
change its default value to the directory path where you installed your dlls.
(C:\Program Files\MyCustomDLLs\bin)
Now the reason for having to make a copy of the GAC'ed assemblies: If you had to reference them without making a copy, you would have an unweildly path to put into the registry. Also think about the scenario where you would have multiple dlls that you put in the GAC and need to have people reference the, a seperate key for each one of them as they reside in seperate folders.
Note: when one references a shared assembly (one that is in the GAC), from the location where a copy was installed, you will find that the "Copy Local" property for that dll will be set to false. This is what should happen. (In some circumstances, like some MS Sql app dlls, the copy local property gets set to true - can lead to some very bad behaviour).
Hope this helps.
Spent a lot of time trying to get all this info.
refenced: Applied Microsoft .NET framework programming (Jeffery Richter) a very very good book
|
|
|
|
|
I found that on some machines on running the uninstaller, Microsoft Installer would not remove the assemblies installed by it in the first place.
I could not uninstall the assemblies using the GacUtil either (even with a force uninstall flag). The problem seemed to stem from the fact that reference count was not decremented during uninstallation.
To make the uninstaller do the right thing, found that deleting the (default) key from the registry helped.
HKEY_CLASSES_ROOT\Installer\Assemblies\Global\
on machines that the unistaller did not remove the assemblies, the default key would most probably have some gobble dee gook.
If you delete this key, it will be replaced with
(default) no value set
After this, when you run the uninstaller, Microsoft Installer will correctly delete the dlls.
From what I found, the gooble-dee-gook is put there by MSN Messenger 6.0 and its a problem that MSN knows, but hasnt documented!!!
Kudos, to the person who found it first and posted it (to some obscure website)
|
|
|
|
|
I want to write an 3ds max plugin that exposes the max SDK interface through remoting or COM.
As 3ds doesn't support .Net i presume i have to make standard .dll in c++ and somehow get a CLR initialized and hosted. Any ideas on how i might go about this ? Would i have to wrap the max SDK to be able to remote it ?
Any thoughts/ideas appreciated
Im fluent in c++ but new to the .NET framework so be gentle.
|
|
|
|
|
Hi! Dear,
I need to compare two files' content in my multithread C# code project.So,which class and what method should I use?
Thanks!
momer
|
|
|
|
|
Do you have a specific problem in doing this? Im not aware of a class in the framework to do this for you but it should be pretty simple to write yourself.
|
|
|
|
|
Open two files as array byte and compare it byte by byte. This is te most simple way to compare
"Courage choose who will follow, Fate choose who will lead" - Lord Gunner, Septerra Core
"Press any key to continue, where's the ANY key ?" - Homer Simpsons
Drinking gives me amazing powers of insight. I can solve all the worlds problems when drunk, but can never remember the solutions in the morning. - Michael P Butler to Paul Watson on 12/08/03
|
|
|
|
|
Hello, I am writing an app using windows forms. This is the first time I've strayed from MFC. I have a basic form with a menu attached to it. I have successfully implemented owner-draw styles for each menu item, but the mainMenu (i.e. the menu bar running across the top of the form) stubbornly retains windows-95 style.
How do I owner-draw the mainMenu control (rather than the MenuItem controls) in my windows form? The MainMenu doesn't appear to have an ownerdrawn property in visual studio design view.
Thanks for your help!
Mick
|
|
|
|
|
Hi,
I have to split this string :
'3','2004/10/08/17/24/29','SILVACO','A145','00','5053813-07','SOCKET WRENCH','TRUBK.KLIC H55;K650,1200','3','350.48'
The Result should look like this :
3
2004/10/08/17/24/29
SILVACO
A145
00
5053813-07
SOCKET WRENCH
TRUBK.KLIC H55;K650,1200
3
350.48
I would like to use Regular Expression to split this String, but I do not know, how should it look? Could somebody help me?
Dan, CZ.
|
|
|
|
|
Hi,
you can do this with following regular expression: '[^']*' . It returns following:
'3'
'2004/10/08/17/24/29'
'SILVACO'
'A145'
(including quotes), so you'll have to trim qotes from begining and end of each string (you can do this using Trim method).
Anyway, I think that you don't need to use regular expressions for this, because you can do this using Split method like this:
string toSplit="'3','2004/10/08/17/24/29','SILVACO','A145','00',"+
"'5053813-07','SOCKET WRENCH','TRUBK.KLIC H55;K650,1200','3','350.48'";
string[] parts=("',"+toSplit+",'").Split("','");
BTW: CZ at the end of your post means that you are from Czech republic like me ?
|
|
|
|
|
My Biztalk 2004 configuration fails on the box that has Windows server 2003, Sharepoint Server 2003, SQL Server 2000, Analysis Services, Visual Studio 2003.
Here are the lines from the log file that I think will help:
[2:47:51 PM Info ConfigFramework] Retrieved cached IConfig object for feature: WMI ProgID: MSEBiz.BtsCfg
[2:47:51 PM Info ConfigFramework] Currently configuring: WMI
[2:47:51 PM Info BtsCfg] Entering function: CBtsCfg::ConfigureFeature
[2:47:51 PM Info BtsCfg] Configuring feature: WMI
[2:47:51 PM Info BtsCfg] Entering function: CBtsCfg::IsSelectedCreate
[2:47:51 PM Info BtsCfg] Leaving function: CBtsCfg::IsSelectedCreate
[2:47:51 PM Info BtsCfg] Entering function: CWMI::Connect
[2:47:51 PM Info BtsCfg] Leaving function: CWMI::Connect
[2:47:52 PM Info ConfigHelper] NT group BizTalk Server Administrators created successfully
[2:47:52 PM Info ConfigHelper NetAPI Info: ] The operation completed successfully.
[2:47:52 PM Info BtsCfg] Entering function: CWMI::CreateGroup
[2:47:52 PM Info ConfigFramework] Waiting for configuration thread to complete.
[2:48:02 PM Info ConfigFramework] Waiting for configuration thread to complete.
[2:48:12 PM Info ConfigFramework] Waiting for configuration thread to complete.
[2:48:22 PM Info ConfigFramework] Waiting for configuration thread to complete.
[2:48:32 PM Info ConfigFramework] Waiting for configuration thread to complete.
[2:48:42 PM Info ConfigFramework] Waiting for configuration thread to complete.
[2:48:51 PM Info BtsCfg] Entering function: CBtsCfg::IsSelectedCreate
[2:48:51 PM Info BtsCfg] Leaving function: CBtsCfg::IsSelectedCreate
[2:48:51 PM Info BtsCfg] Entering function: CWMI::CreateTrackingAnalysisServer
[2:48:51 PM Info BtsCfg] Entering function: CWMI::CreateAnalysisServerFromExe
[2:48:52 PM Info ConfigFramework] Waiting for configuration thread to complete.
[2:48:58 PM Info ConfigHelper] Feature: Engine is installed
[2:48:58 PM Info BtsCfg] Entering function: CWMI::CreateServer
[2:48:59 PM Error BtsCfg] c:\depot4000\jupiter\source\private\mozart\source\setup\btscfg\btswmi.cpp(395): FAILED hr = 80004005
[2:48:59 PM Error BtsCfg] Unspecified error
[2:48:59 PM Error BtsCfg] c:\depot4000\jupiter\source\private\mozart\source\setup\btscfg\btscfg.cpp(774): FAILED hr = 80004005
[2:48:59 PM Info BtsCfg] Leaving function: CBtsCfg::ConfigureFeature
[2:49:02 PM Info ConfigFramework] Waiting for configuration thread to complete.
[2:49:03 PM Info ConfigFramework] Showing MessageBox with text: Unspecified error Return Code: 2
==================================================================
Please let me know
thanks.
That's my story and I'm sticking to it!
|
|
|
|
|
Each time I try to create an ASP.NET Web Application I get the "Web Access Failed" dialog box...IIS is installed and running correctly, however I keep getting the following error message:
The default Web access mode for this project is set to file share, but the project folder at 'http://localhost/WebApplication1' cannot be opened with the path 'c:\Inetpub\wwwroot\WebApplication1'.
Can anybody explain why i keep getting this? IIS is running correctly and so are the rest of my Visual Studio .NET applications...I only get this when I try to create Web Applications...
Thanks
|
|
|
|
|
Hello everyone, I'm looking for a way to be able to display a dynamic image on a crystal report. I don't have the image stored the DB, only have the path to the image.
*HyVong*
|
|
|
|
|
VB6 label control, picturebox.print, textbox control all displayed a set of TTfonts correctly, ie, let's say 40 of the characters were mapped to symbolic shapes and the rest were blank, that's what was shown when rendered in a label.caption, textbox.text, or a picturebox.print method in vb6.
In vb.net 2003, the textbox still renders correctly. BUT label captions and the graphics.drawtext routine both display the 40 symbols correctly AND fill in all the blanks with the character represented by that character code instead of blanks. As an example, where a 'u' should've given a blank in that font, a 'u' is rendered instead.
I have several ttfonts like this, each with a variable number of the characters mapped to a symbol (with the rest blanks) and they can change at any time adding additional symbols replacing blanks, so a preset group of character codes to look for isn't feasible to address in code as a filter for deciding whether or not a character or space should be printed. Any one have a guess as to why this is happening? Is this a framework thing (gdi+) or a vb.net controls thing?
rphillips
vb.net is java, not vb
|
|
|
|
|
Here is my problem.I know that by producing the native image of an assembly ,i can reduce the startup time and i experienced that with a sample windows application.
And I tried the same with my project ,which is an outlook addin(developed in c#). To explain further this addin have refernec to Interop.MAPI,Interop.Outlook and couple of other dlls. And when i ran
ngen on these dlls (exactly the same way as mentioned in msdn documents),i was extremely happy to see that all my dlls are in assembly cache with type Native Images ,everythng as expected.
But when i opened outlook (addin will load at startup) i couldn't fine any difference.So i used the tool PerfMon(part of MS.NET SDK) and i
found that no of methods JITed is exactly the same in both
scenarios (with normal dlls and ngned dlls).
Is there any particular thing i need to take care when i NGEN com addin dlls.What i'm doing wrong??
any help with respect to this will be greatly appreciated.
Thanks and Regards,
Isaac Varghese
|
|
|
|
|
Hi!Dear,
How to conjoin C# code with vc++6.0 code?
where can I get tips about this?
Thanks lot!
|
|
|
|
|
If the vc++ code is a dll, then you can compile it, and use it in your C# code.
|
|
|
|
|
Hi!Nnamdi Onyeyiri,
If we can treat every vc++ code module as a dll?
Thanks
momer
|
|
|
|
|
If you compile your VC++ code to a DLL, exporting the functions you need to use, then you can use p/invoke to run them, yes.
|
|
|
|
|
Hi there,
i wrote an application in VB.NET - its for perhaps 25 Users in a LAN. The appl ist start from any user from the LAN Drive.
The problem is - if a make a update of the application i have to got to any user and increase the 'ASSEMBLY TRUST' for the Assembly.
Is it possible to make a setting in the code which will do an 'assembly trust' automatically??
Thanks
Mike
(WIN2k;VB.NET;ORACLE 9i;Informix)
|
|
|
|
|
Here i have a small doubts to ask you. See you are developing and integrating by the help of source safe ?. To be concise, you are into group development ?.
Sreejith Nair
[ My Articles ]
|
|
|
|
|