|
What is the purpose of this problem? Are the for-loops at the top for incrementing or for setting values?
Kuphryn
|
|
|
|
|
I want to convert a vc regular dll project to a static library.
Is there any way i can do this w/out having to create a new project and import all the files into it.
Can i do this using TMAKE or something...
any advice would be appreciated.
Asim Hussain
e: asim@jawache.net
w: www.jawache.net
|
|
|
|
|
Do you want to know how to set Visual C++ to compile the DLL project in static-library mode? If yes, you can set the mode in properties.
Kuphryn
|
|
|
|
|
You have to create a new project and then e.g. drag'n'drop the files from your DLL project to your newly created static library project.
|
|
|
|
|
I can't believe i didn't think of that.. brilliant.
Cheers.
Asim Hussain
e: asim@jawache.net
w: www.jawache.net
|
|
|
|
|
Does anyone know where to get an addin that will automatically wrap DaoRecordsets around a Table? I miss this feature in VS.NET. or a better way of getting info from a DAO database?
Keep Slacking,
slack
|
|
|
|
|
why I try to add a resource useing the menu option 'add resource' the Visual Studio .NET IDE looks like its doing something then just dissapears. Has anybody seen this before or know what could be causeing it? I'm using it to write unmanaged VC++ and I added a registry explorer macro that i removed when this started to happen. Anybody got any ideas. I've checked all the knowledge bases i could find and can't find anything like it.
Keep Slacking,
slack
|
|
|
|
|
When I switch to release build, I get the following error
C:\AMS\src\Apps\DynamicDataCollector\Viewer\ViewerDlg.cpp(792) : error C2664: 'MessageBoxW' : cannot convert parameter 1 from 'char [46]' to 'const unsigned short *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
This is the offending line of code:
MessageBox("No Data available for the selected parameters", "Data", MB_OK);
This code is fine under debug build. What is happening?
|
|
|
|
|
building unicode?
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Thanks a lot for the hint, yes, building in Unicode.
Forget all the _T
|
|
|
|
|
#include <stdio.h>
void main( void )
{
int a, b, c, d, e, f; /* For key cuts 1, 2, 3 ... */
int pins, cuts;
/*int cmbArray[6]; Array for each combination*/
cuts = 6;
pins = 5;
for (a=1; a <= cuts; ++a)
for (b=1; b <= cuts; ++b)
for (c=1; c <= cuts; ++c)
for (d=1; d <= cuts; ++d)
for (e=1; e <= cuts; ++e)
/*for (f=1; f <= cuts; ++f)*/
if(a=b=c=d=e)
printf("%3d %3d %3d %3d %3d Unacceptable per Rule #2\n", a, b, c, d, e);
else
printf("%3d %3d %3d %3d %3d\n", a, b, c, d, e);
}
This outputs only the if condition. Why doesn't the else statement print? I should get a few thousand lines instead of only six.
Thanks.
|
|
|
|
|
if(a=b=c=d=e) is always true!! ( 6 times )
maybe u meant if ( a == b && b == c && c ==d && d == e)
doStuff();
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
I know that if width is an integer the following code won't give me an error.
and I dont' know how to get the remainder of double. if i cast it like
double widthRemainder = (int)width%6;
then width (becomes) equal to 18. What should I do??
<br />
double width = 18.2;<br />
double widthRemainder = width % 6;<br />
thanks
|
|
|
|
|
double width = 19.2;
int intWidth = (int) width ;
int widthIntRemainder = (int) width % 6;
double actualRemainder = width - intWidth + widthIntRemainder;
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Don't use modulus?
double width = 19.2;
double remainder = width - ((int)width / 6) * 6;
Todd Smith
|
|
|
|
|
I have add some CommandBars to my MFC application, like in the tutorial 'Using Windows CE CommandBands in an MFC based Application' (http://www.codeproject.com/ce/commandbar.asp) from Bruce Hearder.
It works fine, but after opening the 'Save as..." dialog from the main menu and closing that all CommandBars will be removed (or hidden ?!?).
I have 3 CommandBars on the top of the MainFrm-Window. So, when I am click the 'Save as..." menu item the 'Save as' dialog will be opening. So, after choosing OK or CANCEL of the 'Save as' dialog, the dialog will be close. After that all CommandBars will be removed (destroyed or hidden?!?!?).
Can anyone help me!?!?!
(I use eVC++ 3.0 and the Emulator - no device at the moment)
--
Nice greets, Daniel.
|
|
|
|
|
hi,
I am using a SDI FormView-derived Form. I am dynamically creating controls which are placed on the form.
I need to resize the vertical size of the form as I fill it. I have placed a scroll bar on the form.
I managed to do the following:
void CStocks: nSize(UINT nType, int cx, int cy)
{
CFormView: nSize(nType, cx, cy);
CRect txtRect, clientRect;
GetWindowRect(txtRect);
ScreenToClient(txtRect);
GetWindowRect(clientRect);
CStatic caramba[50];
CString g;
for (int i=0;i<50;i++)
{
g.Format("%d", i);
caramba[i].Create(g, WS_CHILD|WS_VISIBLE|SS_CENTER|WS_BORDER, CRect(10, i*10, 120, i*10+50), this);
txtRect.bottom += 50;
}
MoveWindow(txtRect);
As you can see I created quite a few objects just to test the scroll facility. The Scroll Bar appears but my Toolbar and Statusbar disappeared.
Can anyone help me with an example or correction of my errors.
Thanking you in anticipation.
Rui
|
|
|
|
|
GetParentFrame()->RecalcLayout();
ResizeParentToFit(FALSE); Maybe one of these two sentences (or both combined) gives some results.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
hello!
i make a vc++ programm with a mdi. everytime, when i start the programm a empty document is open. what must i change, that the empty document is not there at the beginning?
thanks
MFC is the best
|
|
|
|
|
Find the code:
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
and add:
cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
i ask the same question a few hours ago, sorry, and the person who answerd me said something like that, too. i tried your version, but it doesn't work. i don't know why, the empty document still come at the beginning.
do you have another idea, or did i made a mistake??? i found the code in: programmname.cpp!!!!
hope you can help me.
|
|
|
|
|
Post the code from CYourApp::InitInstance
Tomasz Sowinski -- http://www.shooltz.com
*** Vodka. Connecting people. ***
|
|
|
|
|
everything is okay.....i found the mistake....thank you very much!!!!!!
|
|
|
|
|
Any help would be appreciated.
cheers
Asim Hussain
e: asim@jawache.net
w: www.jawache.net
|
|
|
|
|
Have you tried GetDlgCtrlID(hWnd) ?
regards
modified 12-Sep-18 21:01pm.
|
|
|
|