|
Hai
Thanks for your replay.
I mean the caret. I saw the link as you mensioned above i couldn,t understand.
Now i am using richtextbox. can you tell me how to get the caret current position.
Thanks in advance,
|
|
|
|
|
The caret indicates the insertion point. When you have a selection, the
selection is the insertion point so the caret applies to the whole selection.
It does't make sense to show a caret at the end.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi
How I can transfer parameters from text box on my form to Command Line and then run this command??
|
|
|
|
|
Hi,
you can start a process with the Process class.
Have a look at the StartInfo property and the Start() method.
|
|
|
|
|
Yes, but I want run Command Line and insert there "command" that should be run by Command Line. The Start() method does not contain many properties that allow process with parameters!! StartInfo property consist of two: "set" and "get" and how I can use it??
Thanks for help!!!
|
|
|
|
|
Xeqtr wrote: StartInfo property consist of two: "set" and "get" and how I can use it??
Read the documentation, pay attention to the type, ...
|
|
|
|
|
|
You're welcome.
|
|
|
|
|
Hi all,
I am planning to develop a website which have a simulator where allows users to design thier nail design online. This will be something drag and drop the design to the fingernail in 3D mode.
I would like to ask can this implement in C# with Managed DirectX? And, how do I implement this using C# wi9th Managed DirectX?
Thanks.
|
|
|
|
|
katelva wrote: I would like to ask can this implement in C#
You can start by asking on the C# board[^]
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks to your reply.
Regards,
Katelva
|
|
|
|
|
Wow - you really spammed the whole site....
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi, I have a problem in getting name or other information about USB Memory Sticks among Hard Drives and removable devices by WMI function "Win32_DiskDrive".
There is a code where I tried to get USB Device.
<br />
public: String ^ LogicalDriveInfo(Management::ManagementObject ^ mo, bool shared)<br />
{<br />
String ^ Name1;<br />
String ^ txt = mo["InterfaceType"]->ToString();<br />
do<br />
{<br />
Name1 = Convert::ToString(txt[0]); <br />
}while (txt == "USB");<br />
<br />
return Name1;<br />
}<br />
private: System::Void btnShellApp_Click(System::Object^ sender, System::EventArgs^ e) <br />
{ <br />
Management::ManagementObjectSearcher ^ que = gcnew Management::ManagementObjectSearcher(gcnew Management::SelectQuery("SELECT * FROM Win32_DiskDrive" )) ;
<br />
for each (Management::ManagementObject ^ obj in que->Get())<br />
{<br />
lblSN->Text = LogicalDriveInfo(obj,true); <br />
<br />
}<br />
}<br />
But there are no results to detect only UBS device.
|
|
|
|
|
Dear Sir,
How can I build my proper help in my program .
I am using Visual c++ Net 2005.
|
|
|
|
|
You can either write code to launch help as you see fit, or just have a help file you launch from your app. Depends what you want to achieve.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
My question is that how to make this help file in Visual c++ 2005 NET and how to load it so to read when we need it.
Did Visual Net have a tool to do it easy.
That's what I need to know
modified on Friday, May 9, 2008 1:39 AM
|
|
|
|
|
Hello!
I've found the following CodeProject: http://www.codeproject.com/KB/IP/NetCnfgVersion2.aspx[^]
But I'm not an expert in C++/Cli so I don't know, how to convert this code into a VC++ code so i need your help.
I need the local IP-Address of the Primary Network Adpter to communicate over TCP.
Has somebody a code-snippet in VC++, C# or C/C++, where this is shown.
Thanks a lot.
modified on Thursday, May 1, 2008 8:43 AM
|
|
|
|
|
Probot wrote: I've found the following CodeProject: http://www.codeproject.com/KB/IP/NetCnfgVersion2.aspx[^]
But I'm not an expert in C++/Cli so I don't know, how to convert this code into a VC++ code so i need your help.
The article is not a C++/CLI article nor is the project a managed (.NET) or the projects it references. They are all native C++.
led mike
|
|
|
|
|
Oops. My bad english. I meaned, that i'm not an expert in native C++, so I don't know how to convert this native Code to use it in an C++/CLI Project.
Is it possible to convert this Project (or the functions of the Project) into a DLL. I think then it's possible to use this code in a C++/CLI project. Or not?
|
|
|
|
|
Probot wrote: I meaned, that i'm not an expert in native C++
expert? I'm not an expert in native C++ either. I am capable with C++ and one needs to be before attempting to use C++/CLI. If your problem is you are a beginner with C++ then go learn C++ first, then come back to C++/CLI later.
led mike
|
|
|
|
|
Consider the unary operator overload as per the example in the Stephen G. Fraser book, "Pro Visual C++/CLI", p. 114:
.
.
static OpClass^ operator -(const OpClass ^lhs)
{
OpClass^ ret == gcnew OpClass(); // gcnew invoked here.
ret->i = -(lhs->i);
return ret;
}
.
.
Let's say I have previously instantiated OpClass objects, fred and jane as follows:
OpClass^ fred = gcnew OpClass();
fred->i = 15;
OpClass^ jane = gcnew OpClass();
jane->i = 23;
fred = -jane;
^
|
+---- This causes the "ret" to be instantiated
as a clsInt object and a copy ( by default
memberwise copy? ) is assigned to fred^.
Does ret's going out of scope at the close
of the overloaded operator function call
mark ret's space on the managed heap for
garbage collection?
And, if this were just traditional C++
would the ret's going out of scope mark
it for "delete"ion or would I have to
explicitly delete it (in my ancient
Deitel & Deitel he doesn't delete it)?
Thanks, in advance,
Coop
Jeff Cooper
|
|
|
|
|
aa1ww wrote: Does ret's going out of scope at the close
of the overloaded operator function
it doesn't go out of scope, it's returned
aa1ww wrote: return ret;
}
aa1ww wrote: if this were just traditional C++
would the ret's going out of scope mark
it for "delete"ion
Native C++ has no garbage collection so there is no marking of anything for deletion.
led mike
|
|
|
|
|
Ok, bear with me here...
fred is a handle to some resources gcnew'd in the instantiation of an OpClass object in the main program, right?
Then, during the operator overloading function call, more resources were gcnew'd for the instantiation of OpClass (whose handle is ret).
So ret is returned as a handle and fred (also an OpClass handle) is replaced, OK. But there are now two allocations of OpClass objects on the managed heap.
perhaps the CLR notices that the previously allocated resources pointed to by fred before the overloading function call are now "orphaned" (when fred was replaced by ret) and can mark those resources for deletion?
Thanks,
Coop
PS: Right, traditional C++ requires me to do explicit delete's on my allocated resources.
Jeff Cooper
|
|
|
|
|
aa1ww wrote: perhaps the CLR notices that the previously allocated resources pointed to by fred before the overloading function call are now "orphaned" (when fred was replaced by ret) and can mark those resources for deletion?
It better since that is what a Garbage Collection systems primary purpose is.
led mike
|
|
|
|
|
Hi,
Quick question; im a developer currently working on a win32 project in C/C++/ASM that utilizes a lot of debugging theory in order to work. However, at this point, i cannot seem to find a way to list all process memory maps running in a win32 process. I can extract a full list of modules, and mappings, but i cannot find anything that isn't loaded as an executable module (e.g. Stacks, Heaps, other Maps).
What i really need is a way to extract a list of all process memory maps in a similar fashion to how ollydbg displays them, so i can use the list of maps for internal program calculations.
Any help would be appreciated as i've spent hours scouring the web for an answer.
~Jason
|
|
|
|