|
Yes i tried..
See simply i go in start menu and type clipbrd.exe.but it is not start..
|
|
|
|
|
Try Start Menu, Run, and type clipbrd32.exe
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
sorry i am geting same result when i type clipbrd32.exe..
|
|
|
|
|
try just clipbrd then
it seems that there is no clipboard viewer in vista, sorry
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
It looks like there are some Features removed from Windows Vista[^]. Also, Jijo's modified reply to you has a link to a freeware clipboard viewing utility for Vista.
Most importantly, DON'T ask such questions here. This board is for programming questions only.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Hope you are searching in system32
|
|
|
|
|
when we select radio button then it shows dot which indicate select state
but i want when user click on radio button then radio button should fill with yellow color
how can i perform this
|
|
|
|
|
Better to draw your own button
|
|
|
|
|
to draw our own button we have to draw circle ?
there is no any other solution?
|
|
|
|
|
In my experience, if ur programming language is VC++ and u r using CButton u have to overide DrawItem . I wonder anyboy here to correct me if am wrong?
|
|
|
|
|
ani_ikram wrote: to draw our own button we have to draw circle ?
Of course. That's the purpose of being able to draw controls yourself
Is drawing circles a problem?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi, can somebody tell me how to create a plane passing through 3 points and how to project a point onto this plane.Please do help me out.Thnk You.
|
|
|
|
|
If u provide some more details like why u want this plane...it will be better...
|
|
|
|
|
Thnx for the reply.ok, ill explain it clearly.I want this plane as i have to project a set of points that are scattered all over the space.So i am required to project these points on to the plane, so that i get the 2d cordinates of all th points with respect to that plane.Plse do tell me how to do it.
|
|
|
|
|
|
Well, actually i had to develop a c/c++ code for creating a plane n projecting the points on that plane.Thats y i posted it here so that somebody could help me if they had done something similar to what i want.Plse do tell me if you know how to do it.Anyways, thk you for the reply.
|
|
|
|
|
|
Thnx alot for the reply.I'll chk out those links.Thnx once again for your effort.
|
|
|
|
|
Good Morning!
i have a Cstring of this type
str = "%India%#Mumbai#>Address1>Address2>Address3>"
so i want to store "India" in one CString, say str1
"Mumbai" in another, say str2 and
"Address1","Address2","Address3" in an array of Cstring, say str3[3]
so how can i extract a string present in between % and % for India,
# and # for Mumbai etc.
it is easy to check each character, start from '%' to '%'. but is there any function which does this
i tried with str.Tokenize('%', 0)
but output is
India
and
#Mumbai#>Address1>Address2>Address3>
|
|
|
|
|
kapardhi wrote: i tried with str.Tokenize('%', 0)
Try using _tcstok_s...
Some more details here![^]
Pass multiple delimiters to Tokenize function given in above blog post. You can easily change the output parameter from a vector of std::string to a vector of CString 's. Also a test application is provided to test out different cases. I've tried out with files of 1 MB, 2MB and it was quite good.
Nibu babu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
|
|
|
|
|
kapardhi wrote: i tried with str.Tokenize('%', 0)
You could use CStringT::Tokenize() itself. it accepts a string of delimiters as parameter. For instance see the sample code snippet from msdn.
CAtlString str( "%First Second#Third" );
CAtlString resToken;
int curPos= 0;
resToken= str.Tokenize("% #",curPos);
while (resToken != "")
{
printf("Resulting token: %s\n", resToken);
resToken= str.Tokenize("% #",curPos);
};
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
Hi, I had the same problem, but I also needed the delimiters to be strings. Here's a function I wrote to do this:
std::string FindEnclosedString( const std::string& src, const std::string& left_guard, const std::string& right_guard )
{
int start, stop;
std::string dest;
start = src.find(left_guard);
if (start != std::string::npos)
{
start += left_guard.size();
stop = src.find(right_guard, start);
if (stop != std::string::npos)
stop -= start;
dest = src.substr(start, stop);
}
return dest;
}
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
I want to send a Command string to the modem port (COM3).
I have created a file with CreateFile()
then what should be the parameters to the WriteFile() function to send a string to the COM3 port ... ?
Apurv
|
|
|
|
|
Have you tried passing the file name as "COM3" (no extension, no root directory or absolute path required). That must give you direct access to the port.
Besides that, what is attached at COM3 port? Are you aware that some devices might require you to follow a specific text pattern (usually a series of ASCII keywords) if you want to send it a command? For instance, a printer usually follows the EPSON escape code sequences. I think you need to try specifying the file name as "COM3", as I already said and if it doesn't give you the desired results, you will need to provide more details.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
i m configuring the COM3 port as follows ...
DCB dcb;
HANDLE hCom;
BOOL fSuccess;
TCHAR *pcCommPort = TEXT("COM3");
DWORD dwBytesWritten = 0;
hCom = CreateFile( pcCommPort,
GENERIC_READ | GENERIC_WRITE,
0,
NULL,
OPEN_EXISTING,
0,
NULL
);
if (hCom == INVALID_HANDLE_VALUE)
{
printf ("CreateFile failed with error %d.\n", GetLastError());
return (1);
}
dcb.DCBlength = sizeof(DCB);
fSuccess = GetCommState(hCom, &dcb);
if (!fSuccess)
{
printf ("GetCommState failed with error %d.\n", GetLastError());
return (2);
}
dcb.BaudRate = CBR_57600;
dcb.ByteSize = 8;
dcb.Parity = NOPARITY;
dcb.StopBits = ONESTOPBIT;
fSuccess = SetCommState(hCom, &dcb);
if (!fSuccess)
{
printf ("SetCommState failed with error %d.\n", GetLastError());
return (3);
}
_tprintf (TEXT("Serial port %s successfully reconfigured.\n"),pcCommPort);
Apurv
|
|
|
|