|
Till CBT hook I am clear.After that how to wait for yahoo login window. Situation is not clear to me rather idon't know how to do it
|
|
|
|
|
SiddharthAtw wrote:
After that how to wait for yahoo login window
Check for the creation of login window in CBT Hook procedure
Use the Classname of Login window.
Live as if your were to die tomorrow. Learn as if you were to live forever.
-Mahatma Gandhi
|
|
|
|
|
I need to get all users information from my windows system.
not only the users from local domain
I want to be able to see users from other domains who have rigths on my machine to indentify the privileges.
I used NetEnumUsers API but this function return only users from local domain
Anyone can help?
|
|
|
|
|
One solution is NetUserEnum().
Kuphryn
|
|
|
|
|
hi everybody,
I am doing one C++ programming and facing some problems.
Linking...
msvcrtd.lib(crtexe.obj) : error LNK2001: unresolved external symbol _main
matlabwizard.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
can anyone please help me to solve this problem?
thank you very much.
HAPPY NEW YEAR 2004 ~!
vincent sim
|
|
|
|
|
Hopefully you have done the following stuff
1) file->new->Win32 Application
Ans : use Win32 Console Application, this will solve your problem
if this is not the story, feel free to reply!!!
regards
Balkrishna Talele
|
|
|
|
|
Hi Everyone
This is very urgent. The problem which we are facing in our project is related to the floating point optimizations performed in VC++. The following code snippet elaborates this:
program main
double precision::a,b,x
a = 1.D0
b = 0.1
x = a/b
write(*,*) x
end program main
The above program construct in Fortran stores b as 0.100000001490116 & computes x as 9.99999985098839.
The same equivalent construct in C++ with double variables stores b as 0.10000000000 & computes x as 10.00000000000.However if we declare b as float we get similar results(but our project can’t use floats).
The difference in the results is attributed to the fact that C++ perhaps performs some optimizations to store values of type 1/10 1/100 etc.Hence gives expected results.
Our project requires similarity in results across Fortran & C++.Also we are only free to make changes in the C++ code.We have tried few things in this regard like /Op switch, _control87 & _controlfp.routines with different arguments but couldn’t resolve the problem.
What is required precisely is that the following code segment should assign x the value 9.99999985098839 & that too there should be some global setting sort of thing in VC environment as the code spans around 3 lakh lines which makes it difficult to make changes everywhere.
Void main(void)
{
double a,b,x;
a = 1.0;
b = 0.1
x = a/b;
}
Any help in this regard will be highly appreciated.
Thank you.
-apv
|
|
|
|
|
In C/C++ a float data type uses 4 bytes to store the number, and IIRC has an accuracy of 6 decimal points, so any digits after that are subject to inaccuracy. A double data type uses 8 bytes to store the number, and has an accuracy of 15 decimal points.
I would assume that the fortran code you are using is generating 4 byte floating point numbers, which is why you are getting the same inaccurate numbers as the float type is giving you.
Sonork 100.11743 Chicken Little
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
Within you lies the power for good - Use it!
|
|
|
|
|
apv wrote:
floating point optimizations
In FORTRAN, that brings back memories!!! All I could suggest is look for a freeware maths library that defines it's own double "variable". I know there are lot's out there hopefully there will be one that will work for both FORTRAN and C and will give identical results.
But someone may come up with a compiler switch, but I doubt it. The other alternative is to work in long integers and convert to double at the end, but beware of overflows.
"The greatest mistake you can make in life is to be continually fearing you will make one." - Elbert Hubbard
|
|
|
|
|
It's been about 20 years since I did FORTRAN, but I think that floating point literals (like 0.1) are single precision by default in FORTRAN but double precision in C/C++. This causes the difference in value of "b" and "x". There may be a compiler switch to change that.
|
|
|
|
|
hi..
i am makigna mfc app Doc/View style..
i ahve two views...
now normally the two views are white in color...
what if i want them to be permanently black??
what do i change in my app to make bothe the views black forever...so that whatever i draw on it will be like drawing on a black background...
can someon pls help...
tks a lot...
"Rejoice always, pray without ceasing, in everything give thanks; for this is the will of God in Christ Jesus for you."1Thess. 5:16-18
|
|
|
|
|
Derive OnEraseBackground in ur views
BOOL YOUR_SNAZZY_VIEW::OnEraseBkgnd(CDC* pDC)
{
CRect rc;
GetClientRect(&rc);
pDC->FillSolidRect(&rc,RGB(0,0,0));
return TRUE;
}
(PS: Get A Good MFC Book)
Live as if your were to die tomorrow. Learn as if you were to live forever.
-Mahatma Gandhi
|
|
|
|
|
tks
"Rejoice always, pray without ceasing, in everything give thanks; for this is the will of God in Christ Jesus for you."1Thess. 5:16-18
|
|
|
|
|
hi ,
We are creating a setup for our APPLICATION using Microsoft Install Shield for VC++.
Our application has
(a) 6 MFC and SYSTEM Dlls which are shared(the target system may or may not have the MFC Dlls).
(b) 4 ocx components(one "msflxgrd.ocx" and three developed by us, so the target system has may have the "msflxgrd.ocx" or may not)
The rest of the components have to be registered and we have done them successfully.
(c) 3 dlls which required to be registered.
(d) Few more Dlls and exe(s) required for our application.
I have built my InstallShield on the Windows XP system.
Queries:
1. Do i need to use separate Dlls(SYSTEM Dlls) for Different OS during the build as my application was not being able to find the "msvcrt.dll" on the target Windows 98 machine.
2. How can i remove (during uninstallation) the registry entries created by our own components while installing.
3. We are copying all the Dlls and OCX components to the "system32" folder which have to be registered. These components should not overwrite(or) show a message "component already exists on the target system.
Do you want to overwrite existing?".( i have seen this option in few application(s) setup(s).How do i get this using MS Install Shield.
Thanks and Regards
|
|
|
|
|
I am trying to call ShellExecute or WinExec in my Win NT service application.
When i am running it as simple win32 application, both of the functions executes well but when it is run as service under LocalSystem account, both of them dont work. what to do???
How can i execute another .exe file from current program????
Muhammad Shoaib Khan
http://geocities.com/lansolution
|
|
|
|
|
> I am trying to call ShellExecute or WinExec
> in my Win NT service application.
> ... both of them dont work.
ShellExecute and WinExec both work fine and your process gets created. You just don't see the window of your application because it's on a wrong desktop. To modify this tell your service to be interactive:
Administrative Tools > Component Services > Services (local) >
> double click your service > Tab: "Log On" > Check: "Allow service to interact with desktop"
Although you will see the application now, it will still run under the local System account (often unwanted). To modify this behaviour use CreateProcessAsUser rather than ShellExecute or WinExec :
STARTUPINFO si;
PROCESS_INFORMATION pi;
si.cb = sizeof(STARTUPINFO);
si.lpReserved = NULL;
si.lpTitle = NULL;
si.lpDesktop = "WinSta0\\Default";
si.dwX = si.dwY = si.dwXSize = si.dwYSize = 0L;
si.dwFlags = 0;
si.wShowWindow = SW_SHOW;
si.lpReserved2 = NULL;
si.cbReserved2 = 0;
CreateProcessAsUser(hToken,NULL, szMyApp, NULL, NULL, FALSE,
0, NULL, NULL, &si, &pi);
CloseHandle(pi.hThread);
CloseHandle(pi.hProcess); How to get the security token of a logged-on user? There are several ways, but I usually simply *steal* it from explorer.exe (via OpenProcessToken ). As an example check the nRunAsLoggedOnUser function here[^] (=some handy service helper routines from CISCO).
RK
|
|
|
|
|
hi there..
thanks for your time..
i needed to know if its possible to know if a control is UI Activated already or not? and secondly which function is called when a control is UI DeActivated?
regards
safee
|
|
|
|
|
Hi...
I'm currently trying to creat an installer for distribution of my project. A setup project has been created for the purpose.
But the problem is that I dont want the registry setting for the application to be overwritten if the application already exist in the computer. Only d necessary upgrades will be updated to the old program.
Can anybody give me a clue on how to get it done?
Thank you
|
|
|
|
|
What installer program have you used ?
The installer programs generally have an option where you could tell it NOT to overwrite registry entries.
if urs don't have that option , don't make the entires in the installer instead make them from ur program which will be in a position to check for already made entries in registry
Live as if your were to die tomorrow. Learn as if you were to live forever.
-Mahatma Gandhi
|
|
|
|
|
I'm sorry, I should have told this earlier. I'm creating one using the Setup and Deployment Project wizard in Visual Studio.
Under the Registry Editor, I've set the property to AlwaysCreate property to false but it still overwrites the registry keys eventhough it exist. Do I still have to add a condition?
Thank you
|
|
|
|
|
I have developed a non mfc application using vc++ 6.
I have designed the interface for this application as a vb ocx.
Now i have the vb ocx which contains all the interface for my applications
and now what i need is to know how i can use this vb ocx in my vc++ application as an interface to my vc++ application.
Just give me an idea like i create a form in vb and put some images and controls and make it into a ocx.
Now i need a solution how i can make that form visible in vc++ application
as an interface.
Thanks in advance
vimal
|
|
|
|
|
going n memory here, so forgive me if i make a mistake
with your project open in vc++
project menu
-- add to project
-- components and controls
-- registered activex controls
it should be listed there somewhere
double click in it and it should appear on your controls toolbox/bar thingy in your dialog editor
cheers
Bryce
---
Publitor, making Pubmed easy.
http://www.sohocode.com/publitor
|
|
|
|
|
I need to send an extended ascii character to the active application with postmessage
PostMessage(msg->hwnd,WM_CHAR, 'a', 1)
Then it works where a is printed on the target window or any active window.
but when i use this like
PostMessage(msg->hwnd,WM_CHAR, 'þ', 1)
then the message is not sending the extended ascii character
I am using this in win98 and so i cannot use unicode character
i couldnt figure out the mistake i am making and so if there is anybody who can help me with this and find out and tell me out to send an extended ascii character to the application using postmessage
Thanks in advance
vimal
|
|
|
|
|
Hello most excellent CPians
My boggle [^]is thus :1 client connections the threads do not always perform properly and can "hang" when trying to accept a socket.
But it always performs properly when there is only 1 client connection.
I was wondering if anyone had any thoughts/suggestions/experience in this multithreaded nightmare on codestreet?
regards
Bryce
---
Publitor, making Pubmed easy.
http://www.sohocode.com/publitor
|
|
|
|
|
Are the listening threads on the same port, or different ports?
|
|
|
|