|
Hello, I have a MDI type app where one of my views was derived from CView and then converted into CRichEditView...
Anyway everything works fine except I want to turn horizontal scrolling on and I would like to disable word wrapping. I have tried to change the window styles in PreCreateWindow but this doesn't seem to have any effect on horizontal scrolling. Any ideas? Has anyone had similar experiences?
Thanks,
Rob
Whoever said nothing's impossible never tried slamming a revolving door!
|
|
|
|
|
Hi, I need help with programming simple console registry viewer in c++. Im trying to get all keys, but no all subkeys as RegOpenKeyEx KEY_ENUMERATE_SUB_KEYS can. I dont want get out as
Software
Microsoft
Current version
Security
etc
Sam
but i need to get just
Sofware
Security
Sam
+values
Can anybody help me make this function, which will fast read registry as DIR in cmd?
|
|
|
|
|
Hi,
Please give me a guide line or link to write a program for Add , modify and delete a contact from Outlook Express using API, VB 6.0 or VC 6.0.
regards
Ashish M Chauhan
|
|
|
|
|
Hi Forum,
how can i calculate a time difference between 2 files, my problem:
when i want to create a new task, i check first the starttime of the existing task and i want to have min. 2 hours space between a starttime of a existing task and the new one!
Existing Task gives me starttime in SYSTEMTIME variables return and i convert this in COleDateTime variables, and the new time come out a CTimeControl so i want to check the time difference between SYSTEMTIME or COleDateTime variables and CTimeControl, is there a function to calculate a time difference between this two?
thanks
mirsad
|
|
|
|
|
The easiest way is to convert everything to FILETIME , which is a 64-bit number. Comparing and making time spans is then really easy since you just add or subtract.
--Mike--
Visual C++ MVP
LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ
Strange things are afoot at the U+004B U+20DD
|
|
|
|
|
Hi, i can't convert to FILETIME, i got an Error?
FILETIME newTime = nTime; // nTime is a COleDateTime Variable!'initializing' cannot convert from 'class COleDateTime' to 'struct _FILETIME'
FILETIME oldTime = oTime; // oTime is a COleDateTime Variable!'initializing' cannot convert from 'class COleDateTime' to 'struct _FILETIME'
With typecast a got an error to!
FILETIME newTime = (FILETIME)nTime;//'type cast' : cannot convert from 'class COleDateTime' to 'struct _FILETIME'
thx
mirsad
|
|
|
|
|
Have you looked into COleDateTimeSpan ?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
In a application,
If the user is not an administrator, the user will have to enter a administrator username and password to have acccess to some additionnal informations.
(not using the runas and not using the .net framework)
How could I do this
Thanks in advance for your help.
|
|
|
|
|
Create a modal dialog with two edit controls: one for the username and the other for the password.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
This question is not for creating edit controls. This question is to know about Windows credientials. Windows users.
May be the answer reside in Microsoft security tokens.
thanks for replying either.
|
|
|
|
|
nadzzz wrote:
This question is not for creating edit controls.
It could have been interpreted any any number of ways. You stated that "...the user will have to enter a administrator username and password to have acccess to some additionnal informations." followed by the question "How could I do this?" My answer was simply how to allow the user to enter such information.
nadzzz wrote:
This question is to know about Windows credientials.
What exactly is your question?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
I am working with SDI.i created a menu in one fo the view.The menu items are not enabled from another view.how can i resolve the problem.if any one come across it pls let me know.
|
|
|
|
|
This depends where the functions are.. If your functions for each menu item are in CMainFrame then the menu items should work across all the views. If the functions are declared inside the view or child frame then only that view or child frame will show the menu item as being enabled.
Rob
Whoever said nothing's impossible never tried slamming a revolving door!
|
|
|
|
|
hiya,
i can't det openvc to work on my pc. i get a :
"DllRegisterServer in OpenVC.dll failed. Return code was: 0x80040154"
so, can anyone give me any pointers?
alternatively, can anyone list the set of visual studio controls and their ids than OpenVC exposes?
ta in advance.
|
|
|
|
|
Hi
I have developed one Windows Service which runs after certain interval. It runs on Windows 2000 Professional OS.
Most of the code I have written in C++.
It's a multithreading application in which first when service starts it creates one thread called MasterThread. Then Master thread creates 100 ChildThreads.
First it creates all the 100 ChildThreads in to Suspended mode and when I need it I resume that thread.
The problem is like some time it creates only 20 Threads and it stucks execution over there. Some time it creates 80 threads or something like that and then it stucks. And some time it works fine creating 100 threads....
also sometime it gives error after running successfully for 2 to 3 hours. The error message Showing one dialog box like :
" Runtime Error!
Program : C:\Services|MyService.exe
R6025
-Pure virtual function call "
Does anybody know what these both problems are happening. Is there any limit on how many threads we can create on Windows 2000 and if we want to create more than that limit then what to do ?
Why it gets stuck after creating some number of threads...?
Pls help me...
Thankx in advance
Mahesh
Amarelia Maehsh
Gujarat
India
|
|
|
|
|
Maybe there is a problem with the synchronisation between the threads. Make sure all variables shares between the threads are secured by mutexes, critical sections or other synchronisation mechanisms.
The error you described could be caused by a global class that is initialized by one thread, and accesses by another one at the same time. You have to be very careful with multithreading, it needs lots of planning that it really works without any problems.
Don't try it, just do it!
|
|
|
|
|
Thankx a lot Alexander
It really helped me a lot
Thankx again
Amarelia Maehesh
Gujarat
India
|
|
|
|
|
I've managed to host a web browser window in my program but am unable to work out how to handle events fired from the browser window. I know it has something to do with the DWebBrowser2 interface but how do you hook it up? The program is written in plain Win32 ie. not MFC, ATL etc.
Systems AXIS Ltd - Software for Business ...
|
|
|
|
|
i need help in developing a remote software deployment Application.
Suggest an API for this..
Kalpesh
|
|
|
|
|
K@LPESH wrote:
i need help in developing a remote software deployment Application.
Suggest an API for this..
Hello Kalpesh,
there is no such api for remote software deployment,you have o craete your own.
[Vote One Here, Complete my Survey....]
Alok Gupta visit me at http://www.thisisalok.tk
"I Think Believe this Will Help"
|
|
|
|
|
I know Alok ,But I am such an Optimistic about code-project thats why.
|
|
|
|
|
|
This macro fills the frame buffer with a single uncompressed frame from the capture device.
The above discription found in MSDN library, do you know what is the format of the uncompressed frame? is it bitmap???
Thanks alot!
|
|
|
|
|
I wanted to know whether , "kill" is a command provided by every windows OS , or what?
|
|
|
|
|