|
and this
<br />
CTabCtrl *p=CPropertySheet::GetTabControl()<br />
m_tabctrl.SubclassDlgItem(p->GetDlgCtrlID(), this);<br />
whitesky
|
|
|
|
|
ya sir i try this one
CTabCtrl *p=CPropertySheet::GetTabControl();
m_tabctrl.SubclassDlgItem(p->GetDlgCtrlID(), this
but this has the erroras
CPropertySheet::GetTabControl' : illegal call of non-static member function
Please mail me
|
|
|
|
|
yogendra kaushik wrote: 1)'CPropertySheet::GetTabControl' : illegal call of non-static member function
The compiler is telling you exactly what the problem is. CPropertySheet::GetTabControl() is not a static method.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
|
I am reading some value (path) from the registry. But that contains ~ operator in the path. But I want to display the full path. So kindly help me How can I translate ~ operator from file names or folder names using VC++
Regards,
K. Narasimharao
knarasimharao
|
|
|
|
|
|
Just how many times do you plan on asking the same question? Once is enough in any 24-hour period.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
hi
i wanted to log processes into a file so i coded a program that shows processes(i used both enumprocesses & snapshot,actually i coded 2 program and both of the run well)then i wanted to add a code to shows the creation new process.so i used hook program.
evreything is well.i used messagebox to show which procees is wanted to run.but when i use file to log i dont know what happens the file someties is empty and sometimes show the hook program name.but dont shows the correct result(thas shows in the messagebox)heres is my code:
char host[1024], szModName[1024], *host1; // initialize these accordingly
if (! (host1 = strrchr(szModName, '\\'))) strcpy(host, szModName);
else strcpy(host, host1 + 1);
FILE *fout = fopen("out.txt", "a+");
fwrite(host, 1, strlen(host), fout); fclose(fout); }
|
|
|
|
|
farshad.f wrote: heres is my code:
char host[1024], szModName[1024], *host1; // initialize these accordingly
if (! (host1 = strrchr(szModName, '\\'))) strcpy(host, szModName);
else strcpy(host, host1 + 1);
FILE *fout = fopen("out.txt", "a+");
fwrite(host, 1, strlen(host), fout); fclose(fout); }
So what's the problem? Do the variables contain the correct values? Do the functions return the expected results? Step through each statement using the debugger. Asking others (again) to do this for you will get you nowhere.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I am reading some value (path) from the registry. But that contains ~ operator in the path. But I want to display the full path. So kindly help me How can I translate ~ operator from file names or folder names using VC++
Regards,
K. Narasimharao
knarasimharao
|
|
|
|
|
GetLongPathName
--
======
Arman
|
|
|
|
|
Hi
The Wizard component that comes in with VC++ 6 does not let me add more than 9 pages ?
Why such an odd restriction and how to I get to add as many pages as I like ?
|
|
|
|
|
but u can added as many pages as u want by simply creating a new class derived from CPropertyPage and adding that page to the Property sheet using CPropertySheet ::AddPage()...
nave
|
|
|
|
|
You mean I have to add the pages MANUALLY ??
Why cannot I ask VC++ to create a wizard with 99 pages, if I want to ?
Do they still havr this limitation in VC++ 7 and 8 ?
|
|
|
|
|
Subhobroto wrote: in VC++ 7 and 8 ?
i haven't worked in VC++ 7
nave
|
|
|
|
|
So you have first hand experience of this problem since you used VC++ 6 ?
Let's continue this discussion on YAHOO! Messenger shall we ?
I'm going to email you
|
|
|
|
|
sorry i dont have yahoo here...
but one thing I hate with the VC++ wizard creating the property page is that, all the pages are created in the same file. So often i create only one page using the wizard and add all other pages manually. Also i dont know why they kept a limit of 9 in the wizard.
nave
|
|
|
|
|
So in order for me to try what you suggest I have to use the Classwizar to add a derived class and EVRYTHING that the Wizard wizard creates for me will be created (Messagemaps and all) ?
What so you say...
Can you send me a small such demo app (a few snippets to help me out will do)
And can I get back to you in the next 2 hours (because I will be trying your method during this time)
Please tell me...
|
|
|
|
|
Hi all,
I wish to develop a VC++ 6.0 project to send SMS from PC to mobile. Since i am very very new to this PC to mobile communication development.
Can anyone plz show me a pathway to follow to reach my goal?
Thanks in Advance.
Regards,
Ram
|
|
|
|
|
|
Thanks a lot for your valuable information.
Regards,
Ram
|
|
|
|
|
Hey all,
Iam using VC++6.0.
I am trying to copy the packet data receeived from the serial device in to a ciruclar buffer. But when I try to copy the packet contents from the circular buffer to another local buffer, I am succesful in my first copy. But if a second packet comes into PC, I still keep copying the first packet only. I track the buffer count using a pointer.
I dont understand whats wrong.
Heres the code snippet.
void CMainFrame::OnPortRx(WPARAM wBytesRx, LPARAM lE)
{
char* cpRxData = new char[wBytesRx];
memcpy(cpRxData, m_commPort.GetRawInput(), wBytesRx);
}
where GetRawInput is :
char* CComm::GetRawInput()
{
return m_commInfo->cCircularBuffer;
}
here, CComm is the communciation class
Say, I receive 10 bytes in first packet.
I update the circular buffer count in the Readbuffer() function , I read the second packet having 10 bytes and copy thenm in to circular buffer index being 10 to 19. On every newpacket the buffer index is kept track of and copied. But when I use GetRawInput to do memcpy, the cicular buffer contents from 0 to 9 gets copied in to cpRxdata everytime.
Any help please?
|
|
|
|
|
thathvamsi wrote: memcpy(cpRxData, m_commPort.GetRawInput(), wBytesRx);
Above statement copies the first "wBytesRx" number of bytes to the cpRxData from the start for the cCircularBuffer. And that is always the first packet you received, as you are appending the cCircularBuffer as you receive new packets.
There are multiple ways to solve this depending on your requirement, like whether you need to keep the old packet data in the cCircularBuffer or can discard them or whether the packet length is always same or can vary.
Keep track of your packet numbers and return the char pointer (when you return it in the GetRawInput()) starting from the packet you are trying to access in OnPortRx.
Ankita
|
|
|
|
|
Hi everyone, please help me to convert integer type values to character type values.
"You have to be in a situation where you see just how fast things fail to make you take it seriously, I guess. " Bruce Eckel
|
|
|
|
|
are you serious?
let's see, method 1:
CString sText;
int nValue = 9901;
sText.Format("%d", nValue);
If CString is not your style, you can always sprintf. itoa will also get the job done.
Charlie Gilley
Will program for food...
Whoever said children were cheaper by the dozen... lied.
My son's PDA is an M249 SAW.
|
|
|
|