|
How to insert picture in CRichEditView ? !!!!!!!
|
|
|
|
|
Anyone have a source or example of a program that uses CSocket or CAsynSocket on an IPX network?
Thanks
|
|
|
|
|
The third beta of HPS Beauty is now available for
download. HPS Beauty is a 95/98/NT4 developer's
utility that reformats C/C++ source code according
to specific rules. The interface is entirely GUI,
but HPS Beauty may also be run from the command
line. HPS Beauty supports style files, which
allow you to save and restore groups of settings.
HPS Beauty also offers an optional visual results
window, that shows both the before and the after file.
HPS Beauty has been designed to be delivered as
two separate products: the standalone product
that you can download now, and a DevStudio add-in
that will allow instant reformatting of the file
you are editing, without having to leave the
DevStudio environment. The add-in product will
be available early in 2000.
We invite you to participate in this beta by
emailing support@highplains.net for download
instructions.
Sincerely,
HPS Beauty Support Team
www.highplains.net
|
|
|
|
|
I have a simple C++ console application (same problem with MFC application) that uses character strings. With Version 6, the debug version crashes when it tries to read the character string. However, the release version works fine. With Version 5, both the debug and release versions work fine.
------------------------------------------------------
#include <iostream.h>
#include <assert.h>
#define MAXENTRIES 2
main ()
{
char* szNames[MAXENTRIES]={"1234567890", "1234567890"};
for (int i=0; i < MAXENTRIES; i++) {
cout << "Input a name: ";
assert (szNames[i]);
cin >> szNames[i];
cout << "You have input: " << szNames[i] << endl;
}
return (0);
}
|
|
|
|
|
Subby,
For each of the names that you entered in, how many characters were typed in? Check for a buffer overflow ( especially on the 2nd name ).
- Mike
==================
The original message was:
I have a simple C++ console application (same problem with MFC application) that uses character strings. With Version 6, the debug version crashes when it tries to read the character string. However, the release version works fine. With Version 5, both the debug and release versions work fine. ------------------------------------------------------ #include <iostream.h> #include <assert.h>
#define MAXENTRIES 2
main () { char* szNames[MAXENTRIES]={"1234567890", "1234567890"};
for (int i=0; i < MAXENTRIES; i++) { cout << "Input a name: "; assert (szNames[i]); cin >> szNames[i]; cout << "You have input: " << szNames[i] << endl; }
return (0); }
|
|
|
|
|
your appl crushs because you are trying to write to const variable
there was a bug in VC++5, but in VC++6 is fixed.
==================
The original message was:
Subby,
For each of the names that you entered in, how many characters were typed in? Check for a buffer overflow ( especially on the 2nd name ).
- Mike
================== The original message was: I have a simple C++ console application (same problem with MFC application) that uses character strings. With Version 6, the debug version crashes when it tries to read the character string. However, the release version works fine. With Version 5, both the debug and release versions work fine. ------------------------------------------------------ #include <iostream.h> #include <assert.h>
#define MAXENTRIES 2
main () { char* szNames[MAXENTRIES]={"1234567890", "1234567890"};
for (int i=0; i < MAXENTRIES; i++) { cout << "Input a name: "; assert (szNames[i]); cin >> szNames[i]; cout << "You have input: " << szNames[i] << endl; }
return (0); }
|
|
|
|
|
I have an older proprietary database and want to add ODBC access. Does anyone know how this is done? I can't find anything on the MSDN. I think I need to build an ODBC driver for it.
|
|
|
|
|
I have a Visual C++ window application , and after some pass from one machine to another I can´t generate the debugg executable file, only the Release one.
|
|
|
|
|
==================
The original message was:
I have a Visual C++ window application , and after some pass from one machine to another I can´t generate the debugg executable file, only the Release one.
|
|
|
|
|
How do you add controls to a CTabCtrl at runtime?
Can you use dialogs like CPropertySheet?
I've searched MSDN from front to back on this, and can't find anything.
Thanks,
Frank
|
|
|
|
|
A tab-control is not like a property sheet in that you cannot add dialogs or child controls. Instead, the tab control only notifies you when events (such as the user clicking a tab) occur. It is your responsibility to show or hide controls for each tab as it is selected / deselected.
Cheers!
==================
The original message was:
How do you add controls to a CTabCtrl at runtime?
Can you use dialogs like CPropertySheet?
I've searched MSDN from front to back on this, and can't find anything.
Thanks, Frank
|
|
|
|
|
Is there any way to capture the double click event to allow the user to edit the name of the tab sheet?
Please email me.
|
|
|
|
|
Hi,
We normally create DLLs in VC for all Backend operations and use VB for GUI, use these VC objects and methods to interface with data servers.
My question is:
In VB, if we open the object browser and see the properties and methods of these libraries,
the first line of the panel in the bottom of the object browser states the Function name and Arguements required and the return value type.
The second line states that the class is a Member of some XYZ library...
The third line simply states method <methodname> or property <propertyname>
But the third line of ohher VB's library like VBA/VBRUN etc has more meaningful messages
for each of the functions and properties available in them.
Now, how to make the Object Browser display such meaningful messages for my user-defined Dlls classes?
I do not know where to define them when creating new classes in my dll?
Cheers,
Lakshmi
|
|
|
|
|
The "third line" in the VB Object Browser is displaying the help-string for the property or method in question.
Help-strings are defined in the component's type-library. The source for the type-library is typically a .idl file (could be .odl if you're using MFC). The ATL wizards that create interfaces assign a default help-string of "property NAME", where NAME is the name of your property. Simply change the contents of this string and recompile your type-library to update the value in the VB (or any other) browser.
The idl syntax for help strings is:
[helpstring("My Help String")]
HRESULT SomeMethod();
Hope this helps!
==================
The original message was:
Hi, We normally create DLLs in VC for all Backend operations and use VB for GUI, use these VC objects and methods to interface with data servers. My question is: In VB, if we open the object browser and see the properties and methods of these libraries, the first line of the panel in the bottom of the object browser states the Function name and Arguements required and the return value type. The second line states that the class is a Member of some XYZ library... The third line simply states method <methodname> or property <propertyname>
But the third line of ohher VB's library like VBA/VBRUN etc has more meaningful messages for each of the functions and properties available in them.
Now, how to make the Object Browser display such meaningful messages for my user-defined Dlls classes? I do not know where to define them when creating new classes in my dll?
Cheers, Lakshmi
|
|
|
|
|
Hi,
I have a embedded FlexGrid control on a dialog box and I have distributed MSFLXGRD.OCX and registered it in the production machine.
It was working fine and then all of a sudden it stopped working (the control doesn't load).
I think it has to do with licensing of controls, but I thought embedded controls have license keys stored in the executable code.
What could have went wrong and how can I fix this problem?
Thanks.
Glenn
|
|
|
|
|
Can someone explain to me how to get the Panes of a nested splitter window to size up correctly?
I know that I should know this, but I can't figure it out.
My splitter is 2 rows. Nested in the 1st row is 2 columns. So, three views.
|---------|
| | |
| | |
-----------
| |
-----------
^bad graphic.
The 2nd row always takes up the whole client area of the window. The nested portion is correct, once you drag the splitter bar down.
Any explanation of how to do this would be great.
Thanks, and sorry for the dumb question.
Frank
|
|
|
|
|
You set the initial size for each view in the splitter in the call to CSplitterWnd::CreateView(). For starters, try always passing a size of, say, 100x100. Then experiment with the numbers until you get the look you want.
--Mike--
==================
The original message was:
Can someone explain to me how to get the Panes of a nested splitter window to size up correctly?
I know that I should know this, but I can't figure it out.
My splitter is 2 rows. Nested in the 1st row is 2 columns. So, three views. |---------| | | | | | | ----------- | | -----------
^bad graphic.
The 2nd row always takes up the whole client area of the window. The nested portion is correct, once you drag the splitter bar down.
Any explanation of how to do this would be great.
Thanks, and sorry for the dumb question. Frank
|
|
|
|
|
I did that...but row 0 was always 0 high. Then, all of a sudden I remembered something...
CSplitterWnd::SetRowInfo(int row, int cyIdeal, int cyMin );
It worked.
Thanks!
Frank
==================
The original message was:
You set the initial size for each view in the splitter in the call to CSplitterWnd::CreateView(). For starters, try always passing a size of, say, 100x100. Then experiment with the numbers until you get the look you want.
--Mike--
================== The original message was: Can someone explain to me how to get the Panes of a nested splitter window to size up correctly?
I know that I should know this, but I can't figure it out.
My splitter is 2 rows. Nested in the 1st row is 2 columns. So, three views. |---------| | | | | | | ----------- | | -----------
^bad graphic.
The 2nd row always takes up the whole client area of the window. The nested portion is correct, once you drag the splitter bar down.
Any explanation of how to do this would be great.
Thanks, and sorry for the dumb question. Frank
|
|
|
|
|
Can anyone suggest a SMALL databsase solution, where the runtime needed is on the order of 100-200k rather than 1-7 meg like ADO or Jet.
Doesn't need to be full featured, just small.
Thanks,
Ryan Schneider
NeoWorx Inc.
|
|
|
|
|
The original message was:
>>Can anyone suggest a SMALL databsase solution, where >>the runtime needed is on the order of 100-200k rather >>than 1-7 meg like ADO or Jet. Doesn't need to be >>full featured, just small.
You may want to check into the following:
http://www.startech.keller.tx.us/xbase/xbase.html
- Xbase compatible database
http://www.equi4.com/metakit/
- Metakit
http://www.orcane.net/freeodbc++/
- libodbc++ Needs ODBC manager. Similar to Java's JDBC
ftp://ftp.simtel.net/pub/simtelnet/msdos/cpluspls/vb31027.zip
- VDB
The following links list database library collections:
http://cui.unige.ch/OSG/info/FreeDB/FreeDB.home.html
http://www.acm.org/sigmod/databaseSoftware/
Hope they're of use.
|
|
|
|
|
Hi !!!
In my MDI App, if the user close a child window (derived from CFormView)by clicking on the top right cross button (X), I would like my program to ask him if he is sure or not.
How could I do that ? Which message do I have to intercept ???
Thanks for your help !!!
Jed
|
|
|
|
|
Read the docs on CDocument::CanCloseFrame() That looks like it'll suit your needs.
--Mike--
==================
The original message was:
Hi !!!
In my MDI App, if the user close a child window (derived from CFormView)by clicking on the top right cross button (X), I would like my program to ask him if he is sure or not.
How could I do that ? Which message do I have to intercept ???
Thanks for your help !!!
Jed
|
|
|
|
|
Hi, everyone.
When I want to write some classes to display a menubar like VC IDE, I encountered a problem about drawing system items, the three buttons ,icon and system menu which is originally on the child window caption bar.When the child window is maximized, I have to draw them on my menubar, the icon and menu is easy to draw, but how about the three buttons on right. Is there some effient ways to do these jobs?
Thanks in Advance!
Wang Zhenzhe
2000/01/23
|
|
|
|
|
The API to do this is DrawFrameControl().
--Mike--
==================
The original message was:
Hi, everyone. When I want to write some classes to display a menubar like VC IDE, I encountered a problem about drawing system items, the three buttons ,icon and system menu which is originally on the child window caption bar.When the child window is maximized, I have to draw them on my menubar, the icon and menu is easy to draw, but how about the three buttons on right. Is there some effient ways to do these jobs? Thanks in Advance! Wang Zhenzhe 2000/01/23
|
|
|
|
|
i'm looking to find an HWND for a stationary Dialog box
this is what SPY++ gives me
WINDOW: 000004AC
TEXT: ""
CLASS: #32770(Dialog)
STYLE: 50000044
RECT: 6,380)-(598,524) 592x144
THREAD ID: FFFCB805
PROCESS ID: FFFCBFC9
is there anyway i can find the HWND or a CWnd to this dialog box, and veryify it with this
or any way i can get the mainwindow, and follow through, to this dialog?
it doesnt matter if its MFC or winAPI
Just need a way to get to this HWND
any help would be great
regards!
|
|
|
|