|
try using IPropertyBag interface.
Regards
Abhishake Lahare
|
|
|
|
|
Sorry implement IPropertyBag for your control
Regards
Abhishake Lahare
|
|
|
|
|
Did you actually give them the .ocx file?
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
|
|
|
|
|
Here I have a problem that specified port is working or not ie when we give a port number then it should give that port is running or not.plz anybody help to me
#sankar#
|
|
|
|
|
runing in the sense..do u mean already in use..?
|
|
|
|
|
thanque for ur reply
but i want display it is running or not.
for example if i give 8080 then program will give corresponding port is running or not.plz kindely help me
#sankar#
|
|
|
|
|
|
sankarRao wrote: ere I have a problem that specified port is working or not ie when we give a port number then it should give that port is running or not.plz anybody help to me
how many time do you need answer to same problem... have you checked answer to your previous question!.. search ofr key Port Scanner
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
same question and same ....!?
whitesky
|
|
|
|
|
WhiteSky wrote:
same question and same ....!?
what to do!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
See Here[^] maybe it is some helpful to you
whitesky
|
|
|
|
|
sankarRao wrote: when we give a port number then it should give that port is running or not.
Ports do not run. They are monitored by applications. You can, instead, check whether a port is being monitored or not.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi all,
I have created a CEditBox dynamically, while i am entering some text it is accepting only with in the range of the CEditBox. i can't enter beyond the Range of the CEditBox.
But this is not with CEditBox of the ToolBar, because when we run the Application with CEditBox Choose statically from the ToolBar to CDialog. When you run the Application the CEditBox takes as many Charaters you want.
I used Set SetLimitText(...) to set the Length of the CEditControl but it is not taking, Please help me Out.
//==========================================================================
CEdit *ptr = new CEdit;
ptr->Create(WS_VISIBLE|WS_CHILD|WS_BORDER,CRect(point.x,point.y,point.x +100, point.y +20),this,NULL);
ptr->SetLimitText(100); //Not Working ---> it is not taking 100 Chars Why !
//==========================================================================
uday.
|
|
|
|
|
just give ES_AUTOHSCROLL style too
CEdit *ptr = new CEdit;
ptr->Create(WS_VISIBLE|WS_CHILD|WS_BORDER|ES_AUTOHSCROLL ,CRect(point.x,point.y,point.x +100, point.y +20),this,NULL);
nave
|
|
|
|
|
hi nave,
i got it very much thanks to you.
uday.
|
|
|
|
|
hi
i want to play .wav audio file using win32 api, and i am using following code.
#include<windows.h>
#include<mmsystem.h.>
int main()
{
PlaySound((LPCWSTR)"tada.wav", NULL, SND_FILENAME | SND_LOOP);
return 0;
}
the code compiles correctly. tada.wav is present in its exact location(code project). this code is not playing the file. it is returning 1.
one small beap comes and exits.
is the code correct?? if yes why it is not playing complete file.
if no, what is the exact method.
Manjunath S
GESL
Bangalore
|
|
|
|
|
The sound specified by pszSound must fit into available physical memory and be playable by an installed waveform-audio device driver. PlaySound searches the following directories for sound files: the current directory; the Windows directory; the Windows system directory; directories listed in the PATH environment variable; and the list of directories mapped in a network. For more information about the directory search order, see the documentation for the OpenFile function.
If it cannot find the specified sound, PlaySound uses the default system event sound entry instead. If the function can find neither the system default entry nor the default sound, it makes no sound and returns FALSE
|
|
|
|
|
Manjunath S wrote: PlaySound((LPCWSTR)"tada.wav", NULL, SND_FILENAME | SND_LOOP);
try giving the full path..Also no need to typecast like this
just copy the file to c:\ and try executing the below code
PlaySound( _T("c:\\tada.wav"), NULL, SND_FILENAME | SND_LOOP);
nave
|
|
|
|
|
hi
if i remove the typecast the following error will come:
error C2664: 'PlaySoundW' : cannot convert parameter 1 from 'const char [12]' to 'LPCWSTR'
If i use _T("c:\\tada.wav"): error C3861: '_T': identifier not found
The file tada.wav is present in current directory, c:\, c:\windows\media
If i give the full path, no change in output.
If i give some invalid filename say "afsdfasdf.wav", then also no change in output: one small beap comes.
Manjunath S
GESL
Bangalore
|
|
|
|
|
I think you need to convert the string from ANSII to UNICODE. It should work this way
|
|
|
|
|
Manjunath S wrote: error C2664: 'PlaySoundW' : cannot convert parameter 1 from 'const char [12]' to 'LPCWSTR'
Precede the string literal with an L .
Manjunath S wrote: If i use _T("c:\\tada.wav"): error C3861: '_T': identifier not found
Did you include <tchar.h> ?
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
#include <afxwin.h>
class CExerciseApp : public CWinApp
{
public:
virtual BOOL InitInstance();
};
class CMainFrame : public CFrameWnd
{
public:
CMainFrame();
};
CMainFrame::CMainFrame()
{
Create(NULL, "MFC Fundamentals");
}
BOOL CExerciseApp::InitInstance()
{
m_pMainWnd = new CMainFrame;
m_pMainWnd->ShowWindow(SW_NORMAL);
return TRUE;
}
This is my basic Win32 application.Its shows unhandled ecxeption error.I set MFC as use MFC as shared DLL.i dnt know why the error occurs.Its mot console appliaion, it is win32 applcation.
|
|
|
|
|
update the window......m_pMainWnd->UpdateWindow ();
|
|
|
|
|
where is the object of CMainFrame!
Anu_Bala wrote: BOOL CExerciseApp::InitInstance()
{
m_pMainWnd = new CMainFrame;
m_pMainWnd->ShowWindow(SW_NORMAL);
return TRUE;
}
this should be something like this
CMainFrame *MyPtr=new CMainFrame;
MyPtr->ShowWindow(SW_NORMAL);
m_pMainWnd=MyPtr;
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Anu_Bala wrote: This is my basic Win32 application.
No, it's an MFC application that you've tried to create manually. Use AppWizard to create the application. You'll save yourself much time and grief.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|