|
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.
|
|
|
|
|
Thanx prasad_som,
I didn't know about that option, it's exactly what I needed.
I've found in in Visual Studio.Net too, when you rightclick in the resource view on any of the resources there's the "Resource Symbols" option.
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
|
|
|
|
|
HI all,
how we can communicate with usb device from the mfc?
means if the usb device is installed then how to communicate with
it? does CreateFile will be benefiticial?
if anyone know's some link please forward to me
Thanks and regards
Harshal
|
|
|
|
|
There's nothing special to it. You can use normal file handling routines. Just like how you write a file to your hard disk.
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
Hello Friends,
I have created Combo box in my item.I have question that.. when i will open the Combo box then it will show me last selected item in blue cursor ( ie. it will show mw which string i selected last time).
PLZ help me...I am new in this filed so i dont know what Function or method have to used.
shah_satish2002@yahoo.com
|
|
|
|
|
Are you talking about one instance of the exe or you want the application to remember which item was choosen the last time when app was run ?
redindian
|
|
|
|
|
Thanks dear for your responde..
In my application i created one combo box.I am retraving data from ini file.In my .ini file one section is Default..value of default is equal to string which i selected last time.i want in my application to remember which item was selected the last time when app was run ?( ie it will show in blue cursor ( highlight)).
I hope u got my question.
Waiting for reply.
Satish
Shah satish
|
|
|
|
|
Do not follow Monty's advise he is confused .
Well you are already half way thro to reach what you want .
You said you write the last selected string in a section called Default in an .ini file . So why not you just read the same Default entry when app starts and compare it with combobox items and then you SetSel(item no) . I feel you mean setting focus by "blue color"
redindian
|
|
|
|
|
Ya..u mean...I will compare with if condition n then use selcur method. ( i want to focus or highligh last item..For example when we select any application then it will show us in blue or any color.. that what i want.. ie just only indicate me this section i selected last time.. )
Setcursel is appropriate method or not??
|
|
|
|
|
Hi
Read the Default section of .ini file and get the string in CString or LPCTSTR = lpszStr;
Now implement the following in your OnInitDialog()
int lastselection = m_combo.FindString(0,lpszStr);
m_combo.SetCurSel(lastselection);
redindian
|
|
|
|