|
The best graphics library I know of for speed is Fastgraph by Ted Gruber Software, Inc., written in hand-optimized assembly language.
The algorithm I originaly designed (in C) used assembly level routines (direct video access via hardware support) to read/write the pixel data, that is where the main bootleneck is. It was not intended to be used for image proccessing, but for simple fills like that used by the paint program that comes with Windows.
INTP
|
|
|
|
|
Hi i am looking for the VK code for the subtract key on the main part of the keyboard not the number pad i need to capture both but i can only find the code for the one on the number pad any help you can provide is appreciated thanks
|
|
|
|
|
Spy++ says it's VK_OEM_MINUS
|
|
|
|
|
Hi
Can we load a third party toolbar into our application.
Eg: I have a view class derived from CHtmlView.How can i load the additional toolbars downloaded for the Internet explorer.
Thanks
|
|
|
|
|
As my knowledge, you need 2 toolbars. One supplied by MFC framework, and the other supplied by yourself. If so, read bellow. If not, leave now.
In CMainFrame, create a CToolBar member variable, for example, it may be CToolBar m_tbNew; .
In CMainFrame::OnCreate , add the following code:
<br />
m_tbNew.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC, CRect(0,0,0,0), ID_NEW_TOOLBAR);<br />
m_tbNew.SetWindowText("Caption here");<br />
m_tbNew.LoadToolBar(IDR_NEW_TOOLBAR_RESOURCE);<br />
m_tbNew.EnableDocking(CBRS_ALIGN_ANY);<br />
DockControlBar(&m_tbNew);<br />
The second toolbar will show beside default toolbar.
Good luck.
|
|
|
|
|
Thanks for your reply.
And i wanted to know that can we load the Google toolbar or Yahoo Toolbar into our application.
Thanks
|
|
|
|
|
I have Help->Contents menu in my project. And I have a help.hlp file.
What I need is : On click of the contents menu, I need to display this help.hlp file. How do i do it ??
Could someone help me on this, please. I thank in advance.
Mughi
|
|
|
|
|
::WinHelp(0,".\\MY.HLP",HELP_CONTEXT,19028);
|
|
|
|
|
Its working.
Thanks for your support.
And by the way, I would like to know on how to run any other program, not only HLP files but also to invoke other files like documents, executables, etc.,
Once again, I thank you for your support.
|
|
|
|
|
there are two ways:
if you do NOT need control over the other programm use
WinExec
if you need the control, to determine, wheter the other programm is still running use
CreateProcess / OpenProcess / WaitForSingleObject
|
|
|
|
|
thanks for your support
cheers
|
|
|
|
|
ShellExecute (...)
Try above mantioned Win32 Shell API.
Jitendra
|
|
|
|
|
thanks for your support
cheers
|
|
|
|
|
hai,
can anybody tell me how to change the size of a cview.
i want to display cview just above the status bar.
thanx.
|
|
|
|
|
The CView by default is above the status bar.
I don' tthink u need to do anything about this.
I am assuming you are using MDI or SDI?
Sonork 100.41263:Anthony_Yio
Life is about experiencing ...
|
|
|
|
|
hai,
i want to know whether the coordinates of Cview can b specified .
i want to disp a cview at the bottom.
|
|
|
|
|
abins20 wrote:
i want to know whether the coordinates of Cview can b specified .
Yes. In the CFrameWnd -derived class, override
OnGetMinMaxInfo() .
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Hi All,
I am writing a COM Dll in ATL to integrate 2 applications that talk to each other using sockets. I am new to sockets and have a few queries --
I am using the MFC based CSockets to read and write. When the API,
"Accept" is used, a new socket is created with the same properties which can be used to write to a target socket. Can we use the same socket for reading data that is being written on my socket ?
I would like to spawn different thread for reading and writing. Is it advisable to use the same socket ?
Cheers
Raja
|
|
|
|
|
In your first question you have asked, as I understand that you want to read/write operations on a same socket. it is absolutely valid. When a client connect to the server. The server accepts it and a new socket is created that represent the client socket on the server. In tern when you write something on it in the server, is send to the client for the reading. And when client write something, that is sent to the server and the server can read that content on the same socket that is representing the client.
According to the second question, you are using the CSocket class of MFC. The CSocket provides the various notifications on the socket like something is received or sent on the socket. These notifications Functions are inherited from its base class CAsyncSocket. And you can override these functions to get the processing done of these notifications. You don't have to you the thread manually in your application for that processing. The MFC Framework already implements it. But if the SDK/Win32 API programming is the choice than you have to manually implement all this functionality.
You can find an example app based on CSocket implementation in MSDN at the below link.
Hope it would help you.
Jitendra
|
|
|
|
|
Hi Jitendra
Thanks so much for clarifying my qn. Wanted to reply to you immediately but could not login to this site (
I have realised that when I use a COM dll loaded into my App and wait for Data to receive on my socket (though it is multithreaded, I am using this from VB script of my app), my app hangs until data is recieved.
I am now trying to use the Async Method. Could you please help me in this regard?
I have generated a COM dll using the ATL COM APP wizard. I inserted a Full control that actually exposes interfaces.
I have then defined my own Class, say MySocket derived publicly from AsyncSocket. I now want to use this dll to get notification when there is data to be read, asynchronously.
In my interface implementation,
I created an instance of MySocket. How do I get notified of the event?
Can you email me ur id, so I could send my code to you for better understanding?
My email id is shekar_raja@indiatimes.com
This is very critical to me, please take time for this.
Thanks heaps in advance....
Cheers
Raja
|
|
|
|
|
Hi Friends,
Is there any way to install office 2000 developer on named instance?
VikramS
|
|
|
|
|
a character string can be implemented as a linked list of characters.I have to write a C++ class called "Newstring" that uses linked lists to implement the following string operations (in all examples, string1 and string2 are of type Newstring):
string1.concatenate(string2)
concatenates string2 onto the end of string1
string1.concatenate(ch)
concatenates the single character ch to end of string1
string1.display()
displays string1 on standard output (cout)
string1.length()
returns length of string1
string1.substring(string2)
returns 1(true)if string2 is a substring of string1
and 0 (false) otherwise
In implementing this class, i have to write additional, private methods to assist the others and a program to test the class. This is an exercise not a test and it has me confused really bad.They say its a full programming exercise,what does that mean?I am new at this kind of thing ,please help if you can .
Thanks
main( )
{
StringType str1, str2;
char word;
cin>>word;
StringType str3(word);
str2 = str3;
~str3;
str2.Length();
cin>>str1;
Concatanate(str1, str2);
str2.Display();
if (str1 == str2)
cout<<"SAME";
else
cout<<"DIFFERENT";
}
i have an idea how to do it but haven't had any experience with classes.
|
|
|
|
|
Try posting the code you have already, and we'll be glad to point out where you're going wrong. It seems like a terrible idea to me, why would you do such a thing, unless you had a string you wanted to be optimised for insertions, but NOT optimised for reading the actual value it contains ?
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
None of this makes any sense. You're inputting a character, not a string, and you're not showing the code that matters. This is the code to use the class, not the code that IS the class.
If your teacher expects you to write a linked list, and you don't know what a class is, then either you've not been attending class, or the teacher sucks. Your Concatenate method should be a member of the class, it really should be an operator +, but that's obviously the next lesson.
Also
pedabber wrote:
cin>>str1;
won't work unless you write iostream handlers for your class, which is a logical idea, but perhaps above the level your teacher expects.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
you're a tough bugger christian
i'd have lead him down the garden path for a while first*chortle*
bryce
---
Publitor, making Pubmed easy.
http://www.sohocode.com/publitor
|
|
|
|