|
Oh, sorry for not having answered to this before... I kinda abandoned this project for a while... But thanks though, that worked!
Windows Calculator told me I will die at 28.
|
|
|
|
|
how to declare object for wrapper class in consol based application.
Is it the same :
classname object;
or some other way
2) If i want to design menu in consol based application is that possible?????
-- modified at 2:01 Tuesday 1st August, 2006
|
|
|
|
|
I don't see why it would be different, assuming you're using the same compiler and language...
priyanka s wrote: 2) If i want to design menu in consol based application is that possible?????
Nope, sorry... Unless you want to design your own menus out of characters, with pdcurses[^] or something...
-- modified at 2:12 Tuesday 1st August, 2006
Windows Calculator told me I will die at 28.
|
|
|
|
|
Can anybody please show me a way using VOIP in vc++ to send voice files on TCP/IP. Or a guide me to sample which users VOIP.
Thank you
KIRAN PINJARLA
|
|
|
|
|
how to delete a CStatic object present on the Client window? wt is the right function?
i have the following things with me:-
1) Pointer to the object
2) coordinates of the window/object
3) hWnd
-- modified at 1:12 Tuesday 1st August, 2006
|
|
|
|
|
Hi,
You can hide instead of deleting it using ShowWindow(SW_HIDE). Just a suggestion.
Adios,
Cool Ju
Dream Ur Destiny
|
|
|
|
|
SteamEngine wrote: delete a CStatic object
How did you create that CStatic object? (using new)
You can call DestroyWindow(),delete your pointer after this call.
delete myObj;
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
You want to delete a cstatic object but what is it (2)
how to create Cstatic?Whats application type?
Is hWnd from CStatic
|
|
|
|
|
I think, u should learn the basics of C++
Jubin Almighty
braindrain1@rediffmail.com
-----------------------------
Come online at:-
fitiyal@yahoo.com
|
|
|
|
|
Is it possible to read the data from a file to an object using ReadFile?
please guide me how to do the same.
I tried the following way in VC++ but not getting the values to the object members, getting junk values only. Please help.
class configdata
{
public:
char arr[10];
int value;
void printdata()
{
CString aa;
aa.Format("%d",value);
AfxMessageBox(aa);
return;
}
};
void CTestDlg::OnButton1()
{
DWORD dwBytesRead, dwBytesWritten, dwPos;
char buff[4096];
configdata ss;
HANDLE hAppend;
hAppend = CreateFile("c:\\TWO.TXT", GENERIC_READ,
0,
NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL,
NULL);
if (hAppend == INVALID_HANDLE_VALUE)
{
AfxMessageBox("Could not open TWO."); }
if (ReadFile(hAppend , &ss, 11, &dwBytesRead, NULL))
{
}
CString here;
here.Format("%d",ss.value);
AfxMessageBox(here);
buff[dwBytesRead] =0;
ss.printdata();
CloseHandle(hAppend);
}
|
|
|
|
|
Hi,
How to disable(at run-time) an accelerator key assigned to a menu item in the accelerator table. Is there any direct API?
Thanks,
Cool Ju
Dream Ur Destiny
|
|
|
|
|
Hi
Does anyone know how to read a web page from VC++.
Thanks in advance
|
|
|
|
|
ragavan wrote: read a web page from VC++
Open a connnection to the internet using CInternetSession.
Then
CInternetSession session("Test");
CStdioFile myFile=session.OpenURL("//Some URL HERE");
// Now read the contents of the file .
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Where can I find a way to send samll voice files through tcp and after recieving on ther other end they should be able to play the file.
How to do this.
Thank you.
KIRAN PINJARLA
|
|
|
|
|
I have a requirement to find that which bluetooth stack is
present(currently active) on the system(Windows XP) ? can anyone help me??
|
|
|
|
|
My code was
<br />
USER * pUser = new USER;<br />
ZeroMemory(pUser, sizeof(USER));
pUser->strName = name;<br />
Can please explain me why ZeroMemory(pUser,sizeof(USER)); was causing the error.
Thank you.
KIRAN PINJARLA
|
|
|
|
|
when u use the ZeroMemory() funtion, the m_pchData member in the CString becomes NULL.
but CString was unaware of this change. when trying to copy the new data( in the statement pUser->strName = name;) it causes error.
So dont use ZeroMemory for class/structure that have another class as member.
nave
|
|
|
|
|
Thank You so much Naveen and Toxcct.
Have a great time.
KIRAN PINJARLA
|
|
|
|
|
Hi everyone!
I have a problem of getting worldclock time . Who can help me how to get the world time. Thanks in advance!
|
|
|
|
|
raycadarena wrote: Who can help me
some times i can...
raycadarena wrote: getting worldclock time
what do u mean.. Greenwich mean time?
raycadarena wrote: how to get the world time
did u tried GetSystemTime()?
nave
|
|
|
|
|
can someone please tell me how can i do encryption of image using MFC??
i have created a load button in my program to load an image... after i've load the picture(in *bmp format), how do i encrypt it then save it back into the file? i want to do a simple a XOR logic encryption... i'm using Visual C++ 6.0
Thanks,
Regards...
|
|
|
|
|
You can do it with the bitmap bits.
This may help you[^] but it's dealing with files. you can do the encryption with the bitmap bits you are writing. and do the reverse on loading the file. after reversing, display it.
SaRath.
"Where I am from, there is no plan B. So, take advantage of today becuase tomorrow is not promised. - 50 Cent"
My Blog | Understanding State Pattern
|
|
|
|
|
hey all,
In my code, when I try building my application,
I get this error:
ProgtestDlg.obj:error LNK2005: "unsigned char * Rec_Buffer" (?Rec_Buffer@@3PAEA) already defined in Progtest.obj
But I have define in only one place and thats in Definitons.h nad have included this header file in ProgtesDlg.h
I havent declared this function anywhere. what s wrong? can anyone help please?
Thanks in advance.
|
|
|
|
|
Put "stastic" before the definition of the variable.
or
move the definition to the cpp file( say in definitions.cpp ) and declare it in the header file.
in cpp file
unsigned char * Rec_Buffer;
in header file
extern unsigned char * Rec_Buffer;
nave
|
|
|
|
|
Add #pragma once as the first statement in your Definitons.h
cheers...Milton KB
|
|
|
|