|
Bravoone_2006 wrote: 1) how can i retrieve this string if is not find in my database ?
You can't. Why would you think a string could be retrieved from a database when it cannot be found?
Bravoone_2006 wrote: 2)how can i send 1 string from a CDialog to another ?
void Dialog1::OnButtonClick()
{
Dialog2 dlg;
dlg.SetValue(some_str_value_from_edit1);
dlg.DoModal();
}
void Dialog2::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Control(pDX, IDC_EDIT2, m_ebEdit2);
}
Dialog2::SetValue( LPCTSTR lpszStr )
{
m_str = lpszStr;
}
BOOL Dialog2::OnInitDialog()
{
CDialog::OnInitDialog();
m_ebEdit2.SetWindowText(m_str);
return TRUE;
}
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
After using a _AnShUmAn_ answer use of pMyFirstDlg->yourvariable or function (you need to include header file to another file)
|
|
|
|
|
I am doing an application using ATL COM application wizard.I want to get the path name of the current application .How can i get it.
Thanks.
|
|
|
|
|
radhika28 wrote: I want to get the path name of the current application
Doesn't GetModuleFileName using _module.hInst help ?
|
|
|
|
|
ya the above will retrive the path from exe file.But i want to retrive the path without using executable.Is it possible?
Thanks.
|
|
|
|
|
Do you mean folder path containing exe ?
In that case why dont you trim exe name ?
|
|
|
|
|
In my ATLCOM application i am giving the executable path as C:\windows\explorer.exe.But my application is in D drive.How to retrive the path of the my application in D drive i.e D:\.....
Thanks.
|
|
|
|
|
Have you tried what I said earlier ? It will give path of dll. Provided you pass module instance to it.
If you pass NULL as first parameter it will give exe path.
From MSDN :-
Parameters
hModule
[in] Handle to the module whose file name is being requested. If this parameter is NULL, GetModuleFileName returns the path for the file containing the current process.
|
|
|
|
|
radhika28 wrote: the above will retrive the path from exe file.But i want to retrive the path without using executable.
So use the application's handle instead of NULL as the first argument.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
DavidCrow wrote: application's handle instead of NULL as the first argument
She doesn't seem to read replies carefully. I'd mention this as first reply.
|
|
|
|
|
GetCommandLine also contains the application path.
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
|
|
|
|
|
This function also retrive the path of the executable file.I want to retrive the path of the current application because i gave the executable path different.Is there any function that retrives the path of the application with out using the path of executable.
Thanks
|
|
|
|
|
Can i really be shure that all is well if it dumps nothing ?
|
|
|
|
|
it only tracks allocations made through the debug versions of malloc/new. it doesn't catch any HeapAlloc/GlobalAlloc/etc leaks, nor GDI/resource leaks.
|
|
|
|
|
What is a web installer?
Is it an installer through which we can install
the required software directly from the web itself?
OR
Is it like first we have to download the setup file
and then we can install as usually we do?
With Regards
Ishani Bose
Bangalore
|
|
|
|
|
i'm working on a service app(derives frm System::ServiceProcess::ServiceBase).
the service uses a 3rd party lib for network support which has its socket classes almost as the same as implemented by MFC lib.
----
the control flow of my service is-
onstart
start timer 10 secs
thats it
on elapse of timer
start a thread
thats it
the thread
create a socket obj
sockobj->listen // this returns immediately
thats it
onstop
destroy the sockobj
exit service
----
Now, the sock class triggers an event on client connection request(i.e. , OnAccept). this is where i'm stuck, the event doesn't get fired, or atleast my OnAccept doesn't get called. the sock obj is alive untill Onstop of the service. i've an application (not a service) which runs almost the same code, but, ah, this service freaks out .
any tips on this reg appreciated
thanks
snexxxxt
|
|
|
|
|
snxxxxt wrote: the service uses a 3rd party lib for network support which has its socket classes almost as the same as implemented by MFC lib
How are we supposed to help you with using a 3rd party lib?
Contact the vendor!
If it's really like MFC then you may need to use AsyncSelect or EventSelect with FD_ACCEPT flag.
|
|
|
|
|
hi
we are devolopping a project in that it is required to add the button on internet explorer by clicking that one dialog box containing webbrowser required to open .please any body help me in my priject
-- modified at 5:29 Friday 10th November, 2006
#sanroop#
|
|
|
|
|
You need to add BHO[^]?
You will find lot of example on CP.
|
|
|
|
|
I have a problem with authentication on ISA server proxy. I use NTLM protocol and my code works fine on winXP client, but it is not working on win98. It fails very early when I'm trying to get NTLM Negotiate string. InitializeSecurityContext returns 0x80090302 (SEC_E_UNSUPPORTED_FUNCTION)
Client operating system is windows 98SE with IE 6.0 SP1. I read somewhere, that InitializeSecurityContext can fail if DCOM98.exe is not installed. So I't not the case. I tried to install it but with no success. IE is working fine through the proxy, so it must be problem in my program.
Can somebody help please?
Here is fragment of code:
maj_stat = AcquireCredentialsHandle(
NULL,
PackageName,
SECPKG_CRED_OUTBOUND,
NULL,
authIdent,
NULL,
NULL,
&cred_handle,
&expiry
);
if (maj_stat != SEC_E_OK) {
ErrorFunctionCallFailed(L"AcquireCredentialsHandle",L"VmProxyClient::GetNegotiationData",maj_stat);
}
outDesc.cBuffers = 1;
outDesc.pBuffers = &secBuff;
outDesc.ulVersion = SECBUFFER_VERSION;
secBuff.BufferType = SECBUFFER_TOKEN;
secBuff.cbBuffer = 0;
secBuff.pvBuffer = NULL;
maj_stat = InitializeSecurityContext(
&cred_handle,
NULL,
NULL,
ISC_REQ_ALLOCATE_MEMORY,
0,
SECURITY_NATIVE_DREP,
NULL,
0,
&gss_context,
&outDesc,
&ret_flags,
&expiry
);
|
|
|
|
|
I have downloaded and tried to use this class witin a VS 2005 MFC C++ application.
I am having build problems, has anyone used this Class and developed a sample project.
I was going to use the CSpreadSheet, but then came across the BasicExcel class which seemed more error free.
So anyone with a sample project using BasicExcel.
Many thanks,
Andy.
|
|
|
|
|
hi
i made a dialog with keyboard buttons on it. i need to know how to handle the left and right arrow buttons .
thanks
|
|
|
|
|
Handle the WM_KEYDOWN event.
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
Hy.
I'm trying to clean up a "huge" project, and since i have a few thousand resource IDs in the "resource.h" file, it's a pain in the b.t to try to remove the ones that are really not used in the RC file.
I've found a tool, the ResOrgNET program which can find duplicate IDs, but it still doesn't help in removing the IDs that are not used anymore.
The question is : is there an add-in, program or maybe even a Perl/Java/whatever script that can help me find the duplicate resources ? (it must no remove them automatically, it should either only report them so i can remove them manually, or show a dialog in which i can tell it which ones to remove).
Thanks in advance.
There's no teacher who can teach us anything new
He can just help us to remember the things we always knew!
E N I G M A
|
|
|
|
|
in VC 6, view-->Resource symbols helps you to remove unused ids.
|
|
|
|