|
I must have misread your original post earlier. From a quick glance of msdn link, porting from C++ to C# shouldn't be that difficult.
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
Hi Paul,
Do you know whether there are any tools to convert source codes from C++ to C#? The sample has almost 2k lines of code.
regards,
George
|
|
|
|
|
I don't really know of any tools for converting from C++ to C#. How much C# do you know? Are you learning it?
---modified
Here is one, I don't know how good it is...
http://code2code.net/[^]
---modified*2
Forget it, it couldn't even translate a simple Hello World prog...
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
Thanks all the same.
regards,
George
|
|
|
|
|
i have in my application combobox that contain all logial drives into my pc
when i try to click drive a when no floppy in it error happen
-how to check if the selected drive is floopy or cd
-how to check if it has no files or folders in it
md_refay
|
|
|
|
|
You can't check if a has any files in it without trying to read it. If your file system reports the a drive, that's what will happen. However, it is possible to work out what is a USB drive, what's a floppy, a CD drive, or a hard drive. DriveInfo[] allDrives = DriveInfo.GetDrives (); Now if you iterate over those objects, each represents a drive, and what type of drive it is.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Can someone publish C# code to make use of CreateProcessWithTokenW function, so that i can run process just by getting token from current user, instead of passing user/pw for every run (WindowsIdentity.GetCurrent().Token)
Basically trying to extend impersonation functionality to disconnected functions like Process.Start()
Impersonation example:
http://www.codeproject.com/csharp/zetaimpersonator.asp
Many thanks.
|
|
|
|
|
You may want to use CreateProcessAsUser instead. This[^] link shows how to do it.
|
|
|
|
|
Thanks Pete, I need to use CreateProcessWithTokenW as to allow seemless impersonation; without having to manage credentials.
I found an interesting site, but that also does not have a sample code for me...http://www.pinvoke.net/[^]
|
|
|
|
|
I need help,
Like we set breakpoint in .net,
we can set condition and hit count of that breakpoint in Breakpoint window,
now I want to know how to set this condition?
Suppose there is variable x,
i want to set like if x=5,
then only it breaks or breakpoint hit,
can we do like this!!!!
plz explain in detail!!!!!
I tried on my own many times but either breakpoint does not hit, or it says condition is invalid!!!!!
I want to set a condition for variable in C#.net
|
|
|
|
|
Just set "i == 5" as the condition
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
hi frnd,
statement x=5 ...........set the value of x to 5.
it does not check whether x is equal to 5 or not.
You have to use conditional operator(==) instead of assignment(=) operator.
So use x==5 as a condition.
Ok.
Bye.
Nisar Inamdar.
|
|
|
|
|
hi all,
how to make a setup file in such a way that prerequisites are installed automatically before application is installed, e.g. if .net framework 2.0 is not in target machine it should check and installs it before installing the application.
thanks,
|
|
|
|
|
Not being facetious, or unhelpful, but have you tried googling?[^]
--facetious - what a word to spell!
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
|
|
|
|
|
You could go and have a look at Windows Installer XML. WIX for short. It should cover all your needs for checking registry prerequisites and installing your application.
-Larantz
|
|
|
|
|
Thanks for your useful reply.
|
|
|
|
|
ClickOnce is easy to use and does this, but has some undesirable side-effects.
|
|
|
|
|
I wrote an article on setup projects:
http://www.codeproject.com/dotnet/Win_App_Setup_Project.asp[^]
It seems that with vs 2005 the setup is improved to beable to check and install the .net framework. It checks the dependance prompts the user to accept the license. Then installs the .net framework. NOTE when it is done it is looking for the setup.msi file so that needs to be there.
Here is a microsoft link on it:
http://msdn2.microsoft.com/en-us/library/aa480239.aspx[^]
Hope that helps.
Ben
|
|
|
|
|
Hi,
If the users click mouse right button ,left button will be fired so how to equate mouse right button's action to mouse button left button's action.
Thanks in advance.
|
|
|
|
|
Hi frnd,
I don't get your problem....
Where this is happening?
Nisar Inamdar.
|
|
|
|
|
i know it is little complicated but i said what i said i mean i want what i said.If i can find a way to handle what i want,i can make it my project better..
Thanks in advance...
|
|
|
|
|
Is this a problem you're trying to fix or a feature you're trying to implement?
--
You have to explain to them [VB coders] what you mean by "typed". their first response is likely to be something like, "Of course my code is typed. Do you think i magically project it onto the screen with the power of my mind?" --- John Simmons / outlaw programmer
|
|
|
|
|
Sounds like it is something he is trying to implement. I would imagine just trapping the mouse click event and setting the Button property to the left button if this is possible...
--modified
Which I am not sure is possible since e.Button doesn't have a set property, only get ...
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
well, we can use SendKeys class to implement for Mouse Keys.?
|
|
|
|
|
SendKeys doesn't have anything that works with the mouse.
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|