|
"base class undefined" means that the base class has been declared somwhere like this:
class CBaseClass;
This is for having pointers to the declared class as members, without need to include the class in the header. (The header for CBaseClass is included in the cpp file)
this is no good for derivation. you must #include the header where the base class is declared in the class' header.
I noticed how unclear this might seem at first look (sorry bad English) complain to me if appropriate.
|
|
|
|
|
Can anyone please explain how to use a tab control in a dialog bar.
your help would be appreciated
thankyou
steven oliver
|
|
|
|
|
I'm playing around with the VSS object model and have found a couple of samples on MSDN and the web. However I can't seem to find any documentation for all the interfaces and methods.
At the moment I'm after the parameter specs for GetVSSItem. Anybody got any good links to VSS COM object model documentation.
Michael
"I've died for a living in the movies and tv.
But the hardest thing I'll ever do is watch my leading ladies,
Kiss some other guy while I'm bandaging my knee."
-- The Unknown Stuntman
|
|
|
|
|
MSDN here[^].
To get it in your local MSDN doc, you must check the VSS box at install-time.
How low can you go ? (MS retrofuck)
|
|
|
|
|
Thanks.
That'll teach me to search for functions by their C++ names and not by their VB versions. Doh.
Michael
"I've died for a living in the movies and tv.
But the hardest thing I'll ever do is watch my leading ladies,
Kiss some other guy while I'm bandaging my knee."
-- The Unknown Stuntman
|
|
|
|
|
How to create the window without maximize button or with maximize button disbaled.
|
|
|
|
|
Remove the WS_MAXIMIZEBOX style.
Tomasz Sowinski -- http://www.shooltz.com
*** Purgamentum init, exit purgamentum ***
|
|
|
|
|
I am running the vc program from vbprogram using createprocess.My window name is form1.When i click the button on the form1,i am starting my vc program exe.Once when i start the exe,i tried to disable my vb program taskbar name using
HWND DisWnd=FindWindow("Shell_TrayWnd","Form1");
EnableWindow(DisWnd,FALSE);
But it didnt worked out.
|
|
|
|
|
This doesn't work.
You have two possibilities:
1. Inside your VB program, right after you call the VC app you modify the style of your VB app to have the WS_EX_TOOLWINDOW . This will make the taskbar button disappear.
2. Use ITaskbarList::DeleteTab(HWND hWnd) to remove the taskbar button from the taskbar. hWnd is the handle to your form1.
hope this helps
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
I'm somewhat confused.
When is the FD_READ message sent?
when our supplied buffer is filled, or when the client has sent() or when the tcp-window is filled, or when the package has arrived, or when the message has arrived.
any clearing of this would make me grateful.
After reading several articles on socket programming, this is still unclear, so I guess that complete knowledge of this matter is relatively rare.
|
|
|
|
|
An excellent reference for winsock questions is Bob Quinn's "Windows Sockets Network Programming" (http://www.sockets.com/) and the winsock2 mailing list (http://www.winsock2online.org/).
The books says to FD_READ:
occurs in the socket state 'readable': data received by the the network system is ready for application to read
when our supplied buffer is filled ? NO
when the client has sent ? YES, that is the minimal requirement that the target socket can get into the 'readable' state
when the tcp-window is filled ? YES, maybe, of course it can be not the last tcp-window of the tcp buffer
when the package has arrived ? YES, maybe
when the message has arrived ? YES! (if you mean the windows message from WSAAsyncSelect or select; it's also correct when you mean with message the whole data block the client socket has sent to the receiving socket in readable state)
A select'ed or WSAAsyncSelect'ed socket receives FD_READ when it is in readable state and a following recv() on that socket will succeed. That means that is garantueed that data can be received (please notice, this can also data of length 0)
|
|
|
|
|
Hi,
Can someone please point me to a good tutorials about driver development
including examples?
Kind regards
Eran
|
|
|
|
|
Sir/Madam
I saw the program in this website which explains about loading an Image as Backgound in MainFrame.I want to do the same but my application is being developed as Single document and my Base Class is View.Please help me load image in the mainframe for the same(Single document - base class - View)
ThankingYou.
Regards,
Subha
|
|
|
|
|
Well, if that's the case, then the only thing that is visible is the view, so you need to draw in the view's OnPaint. Remember, you're drawing over the area that people type into, or whatever else goes on in your view. I'm hoping it's a CFormView, in which case it will do the job nicely. Otherwise, it will work, but has the potential to be ugly.
Christian
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
It is not CFormView.Its CView only.I have all the functions in the form of Dialog box and I dont have anything to be done within the area of mainframe.What is the part of coding that I have to add in OnPaint to get the background image in the mainframe.
regards,
Subhashree
|
|
|
|
|
You know, if you created an account, you'd get an email so you'd know right away when someone answered you.
Why do you have a view if you don't put anything in it ?
You basically need to use LoadImage to load a bitmap from disk, then BitBlt or StretchBlt to draw it onto the view. From memory you found the code to do it in a dialog on CP - the code will be identical.
Christian
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
Hi,
I am trying to do a netsend clone by using the NetMessageBufferSend
function.
I'd like to know which function I could use to be able to resolve a computer hostname knowing the username of the person logged on it.
Is there a win32 or NetApi function which allows that?
Thanks,
John
|
|
|
|
|
NetUserGetInfo
- pass NULL as ServerName (first param).
- request level 2 (third param).
--> resulting logged on workstations is in USER_INFO_2.usri2_workstations
Looks like you are developing a balloon messenger...
How low can you go ? (MS retrofuck)
|
|
|
|
|
I'm building a program, and I have this problem:
- I got CDocument/CView architecture
- In CMyAppDoc is CMyClass object
- In CMyClass object is a function SolveProblem()
- In SolveProblem is a loop that is working on a certain problem
How can I from _inside that loop_ update the screen? That way I could see the progress.
Two threads? How? I put SolveProblem work in another, and then...?
Just kick me in the right direction, no need to kick me all the way
|
|
|
|
|
Invalidate(FALSE); tells the screen to update itself, making the parameter TRUE also tells it to erase itself. If you're showing progress in a progress bar, it has a method to set it's level, and any control that contains text can be updated with SetWindowText, which will invalidate the control. You probably want the latter methods, I would think.
Oh, UpdateData(FALSE) ( from memory ) does it for you if you have controls and have made variables that are CStrings.
Christian
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
How can I get a pointer to CWnd object to be able to use Invalidate?
Invalidate is a member of CWnd, while my loop runs in CMyClass (which is a member variable of CMyAppDoc).
From MS VC++6 help:
CWnd::Invalidate
void Invalidate( BOOL bErase = TRUE );
- - - - -
I could rephrase the question:
How to cause screen update from a loop inside my own class?
|
|
|
|
|
Check AfxGetMainWnd which you can access your CMainFrame object. You can access main frame at any place in your code and updating main frame shall update all windows (I'm not sure with the last one but it should work). Or from that point you can access the window that you want to update.
ozgur.
|
|
|
|
|
Sorry - I did not get that you were outside your window. As has been said, AfxGetMainWnd, and if you cast the return value to CMainframe, you can get access to views, etc. Better yet would be to pass the pointer in from the window when you call the method.
Christian
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
Yes, that would be the best solution. I already catch the Menu command in CView class object,
I'll just pass the CView pointer to my own class (I get the pointer to my own class object from pDoc),
and then I can use the Invalidate() inside my own class.
I seem to always try to cut down the number of passed parameters and look for other
ways of getting the needed information (usually pointers).
|
|
|
|
|
The way I see it there are only 2 practical ways of implementing something like this.
1) A string of bytes having each new line seperated by a CRLF.
2) An array of strings (variable or fixed)
How do you reckon Notepad and VS IDE editor are programmed...? Which design...? I'm looking for speed and efficiency rather than ease of implementation...which would you suggest and why...?
Thanx!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|