|
|
There is a function SetAutoURLDetect suporrted by CRichEditCtrl as per MSDN but when actually called there is no such function in the header file . there is a compiltion error can anybody help me ?????
|
|
|
|
|
|
|
I have a initialized a bitmap with a bitmap info header,which i have mentioned of bitcount=1(monochrome bitmap).I want to get the bits of the bitmap.Is it possible to get the bits by using function called GetDIBits for a monochrome bitmap.
|
|
|
|
|
Is there any reason you can't create it as a DIBSECTION ? Then you'll have a pointer to the bits by default.
Christian
We're just observing the seasonal migration from VB to VC. Most of these birds will be killed by predators or will die of hunger. Only the best will survive - Tomasz Sowinski 29-07-2002 ( on the number of newbie posters in the VC forum )
|
|
|
|
|
Do u mean that if i use createDIBSection api,i can get the pointer to access the bits.
Please all tell the procedures.i have just initialized the bitmap info header.Afterwards i dontknow what to do.
|
|
|
|
|
BITMAPINFO bmInfo;
memset(&bmInfo.bmiHeader,0,sizeof(BITMAPINFOHEADER));
bmInfo.bmiHeader.biSize=sizeof(BITMAPINFOHEADER);
bmInfo.bmiHeader.biWidth=width;
bmInfo.bmiHeader.biHeight=height;
bmInfo.bmiHeader.biPlanes=1;
bmInfo.bmiHeader.biBitCount=24;
HDC pDC = ::GetDC(0);
HDC TmpDC=CreateCompatibleDC(pDC);
BYTE *pbase;
HBITMAP TmpBmp=CreateDIBSection(pDC,
&bmInfo,DIB_RGB_COLORS,(void**)&pbase,0,0);
HGDIOBJ TmpObj=SelectObject(TmpDC,TmpBmp);
|
|
|
|
|
I have created an image transfer system using the UK GSM network. When the send and receive ends are both on my desk (both modems in the same GSM cell), then I have no problems at all, the system and the software work perfectly.
However, as soon as the ends are separated by any reasonable distance (in to a new GSM cell) the system falls over. Having done some extensive playing aroundtesting I have managed to discover that the modems response to dialing any out of cell number is 'NO CARRIER'. Unfortunately I have very little comm.s experience and even less experience with GSM comm.s.
I can write the most clever code in the world, but if I can't get a call to connect it's a waste. Does anyone have any ideas as to what's occurring here?
Derek Lakin.
I wish I was what I thought I was when I wished I was what I am.
Salamander Software Ltd.
|
|
|
|
|
How do I do it? :-P
I want to enable copying from a CScrollView derived class the selected data in text format. The clipboard stuff I can do, but what is bugging me is whether I really have to code the selection stuff myself.
|
|
|
|
|
Anonymous wrote:
what is bugging me is whether I really have to code the selection stuff myself.
Yes, you'll have to do that yourself. What kind of information are you displaying in CYourView?
Tomasz Sowinski -- http://www.shooltz.com
- It's for protection - Protection from what? Zee Germans?
|
|
|
|
|
Thanks for your answer, even though it is not what I wanted to hear .
The document content is just plain text.
|
|
|
|
|
Anonymous wrote:
The document content is just plain text.
You may consider switching to CEditView or CRichEditView then.
Tomasz Sowinski -- http://www.shooltz.com
What is "scratch" and why can everything be made from it?
|
|
|
|
|
Hello,
I am writing a dialog based application in VC++ 6.0.
I need to execute a dos program at one point in the program and use the file generated by the DOS program. Please tell me if you know how to execute a DOS program from my VC++ code. Thanks !!
I really appreciate your input on this.
Thanks you!
Sincerely,
Anjum.
|
|
|
|
|
Still using old 16bit DOS apps? Puh!
However, a 16bit app is started as any other app either using ShellExecute(Ex)() or CreateProcess() APIs.
--
Daniel Lohmann
http://www.losoft.de
(Hey, this page is worth looking! You can find some free and handy NT tools there )
|
|
|
|
|
Hello,
I am writing a dialog based application using VC++ 6.0. It is almost complete. Now I need to change the color of all the dialog boxes and all the buttons on it from normal Grey to Some other color. I am using the funtion SetDialogBkColor() in my initInstance to change the background color .. but all the buttons etc. remain grey. Pleas suggest a way that I can change the color of all the buttons to something other color other than grey.
I really appreciate your effor in solving this problem.
Thanks!
Sincerely,
anjum.
|
|
|
|
|
the standard window buttons can't be changed in color... however they can be owner-drawn... check some articles on this site ... Controls - Buttons for example, is a section which contains lots of good info on this subject
- Roman -
|
|
|
|
|
Hi,
How can i read the unicode string from a file line by line?
Text contents will be something like this:
English string chines string
Thanks
Neha
|
|
|
|
|
first you check the first two bytes of the file... if they are 0xFF and 0xFE, respectively, the file is little endian unicode... meaning that every character in the string is two bytes and that the value (up to 65535) is a little endian "short"... if the first two bytes are 0xFE and 0xFF then the file is big endian unicode, meaning that each character is a big endian "short" value... if the first two bytes are anything else, it's not unicode
NOTE: i'm not sure about UTF-8, i never figured out the byte pattern for that format
- Roman -
|
|
|
|
|
in my application ,i want to use edit control to input text
and i want to change the font of text in the edit control.
my quesion:how can i change the edit control's width and height
accoding to the font size?
thanks.
-----------------------------
Mr.Whelk
-----------------------------
Zhuhai City ,Guangdong ,China
|
|
|
|
|
I think MoveWindow() can do this!
In vckbase I also found your question!
|
|
|
|
|
In release build my exe is crashing while invoking a dialog, its crashing in ::CreateDialogIndirect() function.
Can anybody help me.
I got two Extention dlls, one DllOne.dll and another DllTwo.dll. I am handling menu clicks into DllOne.dll's mainfrm.cpp. into a function called Fun1(). In Fun1() i am trying to invoke a dialog from DllTwo.dll. There are two Dialogs into DllTwo.dll, For first Dialog its working fine in Release Build but the second one is not working (crashing into CreateDialogIndirect()). Both of these dialogs are working perfect in Deug build. Please Help
Thanks
|
|
|
|
|
supply us with some more info or just debug it (put a break point on it)
- Roman -
|
|
|
|
|
I got one extension dll, with its own resources. It is having two dialog into its resource. i am invoing these two dialogs on menu click. I handled it in mainfrm.cpp. Its not at all giving any problem to first dialog invocation but it is crashing in second dialog invocation.
|
|
|
|
|