|
Looks like you're in the wrong forum. C++/CLI is C++ with .NET. You want the visual C++ forum.
Christian Graus - Microsoft MVP - C++
"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 all,
Is there something in boost that I can use to check if a file is existing and if the file is working.
for example string file = "c://sample.doc", is there something from boost that can see if the sample.doc exists in c: directory?
Thanks,
Jj
|
|
|
|
|
AS you're using .NET, use File.Exists. If you're not using .NET, try using the right forum.
Christian Graus - Microsoft MVP - C++
"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 Christian,
I am just using regular c++ at visual c++.
Thanks
|
|
|
|
|
OK, so then you're in the wrong forum. The Visual C++ forum is the one you want
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
|
can anybody explain me how the size of an empty class is 1byte
thanks in advance
|
|
|
|
|
Did you mean to ask this in the .NET forum ?
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
|
STOP READING THE DOCUMENTATION!
What do you think your are, a software developer or something?
|
|
|
|
|
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
It's funny - Google makes billions, yet only a few of us know how to use it
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Actually the whole thing sort of makes sense. Years back before the web was so large, forums and news groups were a logical mechanism for gaining information. Now anyone that is capable just searches and finds it, most of the time. So now in these forums we are left pretty much with the not capable category ( filet-o-fish). I bet the VB forum is very busy, and C# isn't far behind it!
|
|
|
|
|
The C# forum is WELL behind the VB.NET one....
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
I hate filet-o-fish. It is just not natural. A tasteless by product with lots of guts.
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
Hi, I'm using Visual Studio 2005 C++/CLI. I have a TreeView Control that displays a few nodes with some sub-nodes in each. I have written the application so if I right click on a sub-node I get a ContextMenuStrip where I can select "MenuItem". If I left click on a sub-node FIRST (thus selecting the node) then right click to select "MenuItem", I can then use...
TreeNode^ selectedNode = this->treeViewInstruments->SelectedNode;
...to get a copy of the selected node. However, if I DO NOT left click on the sub-node first and simply right click on it and then select "MenuItem" the above line of code returns an undefined value. I added code to respond to the mouse right click on a node but I can't seem to set the node as selected. I just want to be able to "set the node I just right clicked on to the selected node".
Thanks
Buck
|
|
|
|
|
Sorry, I didn't get you... Are you trying to select a tree item using the right click?
|
|
|
|
|
Hey Buck,
I have not got around to doing this with the .NET TreeView yet but I had to deal with it in MFC years ago so it should translate.
In my OnContextMenu handler I used the tree control HitTest() to discover the node that was clicked on. I see in the BCL TreeView documentation it has a HitTest() method. I don't know if translating the point would still apply in the .NET environment in that it might already be done.
void CEdTree::OnContextMenu(CWnd*, CPoint point)
{
CPoint pt(point);
ScreenToClient(&pt);
_nmRClickItem = tree().HitTest(pt);
|
|
|
|
|
Yes, I looked up the HitTest() doc and implemented it and it worked wonderfully.
Thanks Mike,
Buck
|
|
|
|
|
Hi All
I have developed a snapIn.at run time I have an object of class CSnapInItem.
I need to extract the classname of that object that inherit CSnapInItem class at run time.
I have tried CSnapInItem* pItem
typeid(*pItem).name();
but its not wrking....throwing an exception..at run time,...plzz help me..hoe to get the class name at run time.
thanks in advance.
Rashmi
|
|
|
|
|
as you're using .NET, try using reflection.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Hello all,
I am making client server application in c++.
I am using following lines of code.
int m_sock = socket(AF_INET, SOCK_STREAM, 0 );
but m_sock contains -1 and it is not creating socket for me.
Any body know how can i solve this problem?
Thanks in advance
Manish Patel.
B.E. - Information Technology.
|
|
|
|
|
seeing as you're using .NET, use the .NET classes to handle this, I'm sure they are easier to manage.
Or, if you're not using .NET, try asking in the right forum.
Christian Graus - Microsoft MVP - C++
"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 want to connect PIC16F877A with LM35 to measure temperature ,please tell me how?
and how can i display it on 7segment?
thank you alot.
noooon
|
|
|
|
|
Sounds cool. I'm not sure what part of this applies to Managed C++/CLR...
You may want to post on a more appropriate board.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|