|
sorry conticello, but i can't see other way to do that but to compile your project under each plateform you want it to run on...
so, you must compile it under WinME and Win98...
TOXCCT >>> GEII power
|
|
|
|
|
It looks quite strange to me the fact that visual c++ doesn't have a way to instruct its compiler to produce code backward compatible with windows 98 but, assumed that, another problem arises...
Which compiler to use to compile the source code under windows 98/me ???
Of course not visual studio .net 2003 because it can't be installed on platforms older than windows 2000.
The easiest answer should be to use visual studio 6.0 but i don't own it and even if i can get a copy around i don't feel i can buy it just to compile a single program once.
Does someone have an idea?
|
|
|
|
|
conticello wrote:
Sorry to bother you all...
How is asking a question on a public forum considered bothersome? It's not like you forced yourself upon anyone.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Hi,
I would like to be able to drag thumbnails from one list control and then have them appear in a pre defined arrangment in another list control (e.g.). What is the standard way of doing this? Is there a specialised control for this. I just want to be able to drag the thumbnails to another user defined grid . Say 1:1 layout or 4x4 (16) thumbnails.
Regards,
|
|
|
|
|
I'm trying to display the PI symbol on certain static text variables in a Dialog box. I know I can set all the text in the dialog box to the symbol font but is there a way using SetFont in the OnInitDialog() function to allow me to change the only certain ones to the symbol PI?
Also how would I put a subscript/superscript on a static text? Would this be done using some sort of RichEdit?
Any help would be nice.
J Guds
Masters Student
Kansas University
|
|
|
|
|
CFont font;
font.CreateFont(
14, // nHeight
0, // nWidth
0, // nEscapement
0, // nOrientation
FW_BOLD, // nWeight
FALSE, // bItalic
FALSE, // bUnderline
0, // cStrikeOut
ANSI_CHARSET, // nCharSet
OUT_DEFAULT_PRECIS, // nOutPrecision
CLIP_DEFAULT_PRECIS, // nClipPrecision
DEFAULT_QUALITY, // nQuality
DEFAULT_PITCH | FF_SWISS, // nPitchAndFamily
_T("MS Sans Serif"));
btn = (CButton*)GetDlgItem(IDC_BUTTON_EXIT);
btn->SetFont(&font);
Ellis Li
|
|
|
|
|
1. Remember to delete your font after use.
2. This is only a sample, please custom it yourself
Ellis Li
|
|
|
|
|
why delete the font after you used the SetFont()? Please refer to : http://www.flounder.com/detach.htm
Ellis Li
|
|
|
|
|
Did you know that you could modify your original response instead of creating more?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
I have been reading line after line of code and instructions of classes and instances, declarations and structures....I think I get it and I try to write a program but It just doesnt want to come together. I have been reading about C++ on and off for years now and I understand fully what many of the functions and structural components of C++ are and how they work....but something seems to be flying right over my head! I scan thru these forums and hear talk about all different kinds of wacky functions and what not and have NO CLUE whats going on.. Does anybody have any suggestions as to where I might go for help/tips or some incite as to how they went about starting their coding career? Thanks in advance!
------------------
Aspiring coder with no programs to date.
|
|
|
|
|
The best place to start is at the beginning.
Imho, the most difficult aspect of learning/teaching a subject has to do with mastering the basics. For it is during this phase that interaction between a student and the instructor is usually at its most intense. I suspect you're having difficulty grasping some of the fundamental concepts of programming, and rightly so. You can (relatively) easily teach yourself a new language, but understanding the basics requires a good instructor, a lot of hand waving, and eye contact.
That being said, I suggest you enroll yourself at a local university or community college and get a few computer science courses under your belt. Armed with the knowledge that you may have picked up reading and browsing this forum, you'll probably enjoy taking the courses more than some of your other classmates.
Here's a suggested curriculum. The actual course names may vary, but try to get this material under your belt.- Introduction to programming (logic, flowcharting, boolean algebra, C)
- Data structures
- Object oriented programming (C++, Java)
- Design patterns
Of course, simply understanding this material is not sufficient. You'll need to write hundreds of programs in which you apply your knowledge. That, imho, is the real process of learning.
Good luck and feel free to ask lots of questions!
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Go to school. Also don't try to learn c++, maybe just the basics, e.g. syntax and try to get to newer technologies like vc++6 or .net languages... also don't just try to read about c++, try to actually make things with your knowledge because if you don't it will go as fast out of your head as it came in. Right now I'm studying directx and how to make games... if you think c++ functions are hard try directx functions in c++;P.
Actual Linux Penguins were harmed in the creation of this message.
|
|
|
|
|
Hello, there,
I'd like to know how I can display tooltips on CToolBarCtrl when the CToolBarCtrl's window doesn't have focus. I put a CToolBarCtrl in a win32 window. But it won't display the tooltips when the win32 window doesn't have focus. I want the tooltip displayed even when the win32 doesn't have focus. When I move the mouse over the button, I can see the hot tracking, but no tooltips.
I noticed in IE window, the tooltips of links will show up even when the IE window doesn't have focus.
Thanks a lot in advance.
|
|
|
|
|
Specify the TTS_ALWAYSTIP flag when creating it.
|
|
|
|
|
I inserted a ListBox in Form of CFormView and set it to Report type from the property. Using the control variable of the List Box the columns were inserted.
But while inserting Item using
int InsertItem( const LVITEM* pItem ); overload of the function, the call to LVN_GETDISPINFO is not sent and hence the items are not displayed.
the snippets of code
iteminfo *it = new iteminfo;<br />
it->Donum = m_donum;<br />
it->weight = allocate[i]/5;<br />
it->truck = it->weight/10;<br />
<br />
LV_ITEM lvi;<br />
lvi.mask = LVIF_TEXT|LVIF_PARAM;<br />
lvi.iItem = i;<br />
lvi.iSubItem = 0;<br />
lvi.iImage = 0;<br />
lvi.pszText = LPSTR_TEXTCALLBACK;<br />
lvi.lParam = (LPARAM)it;<br />
m_list.InsertItem(&lvi);<br />
i++;
and this being the LVN_GETDISPINFO message handler
void CTruckBillView::OnGetdispinfoList(NMHDR* pNMHDR, LRESULT* pResult) <br />
{<br />
LV_DISPINFO* pDispInfo = (LV_DISPINFO*)pNMHDR;<br />
CString string;<br />
<br />
if(pDispInfo->item.mask & LVIF_TEXT)<br />
{<br />
iteminfo *pitem = (iteminfo *)pDispInfo->item.lParam;<br />
<br />
switch(pDispInfo->item.iSubItem)<br />
{<br />
case 0:<br />
strcpy(pDispInfo->item.pszText,m_donum);<br />
break;<br />
case 1:<br />
string.Format("%.2f",pitem->weight);<br />
strcpy(pDispInfo->item.pszText,(const char*)str);<br />
break;<br />
case 2:<br />
string.Format("%.0f",pitem->truck);<br />
strcpy(pDispInfo->item.pszText,(const char*)str);<br />
break; <br />
}<br />
}<br />
<br />
*pResult = 0;<br />
}
Thanks in advance
|
|
|
|
|
|
Hello all. I am having a very hard time parsing a string that i am reading from a line. I have been working on it since 2 days ago and can not get it right...Here is my code. If anyone could take the time and see what my problem is, it would take alot of discomfort and stress from my shoulders.
Here is my function where i am reading from a file, which seems to be working fine. buff is a local variable that i have initialized as follows
char buff[256];
//reading a file
void CTimeTrackerDlg::ReadLine()
{
ismanager = false;
while( !m_sfile.eof() ) {
m_sfile.getline( buff, 256 );
parse_string();
}
m_sfile.close();
fileopen = false;
}
Now here is where i parse the string. I tried this code in a consoule application which seems to be working, but as soon as i place it in my program, MFC, dialog application, it seems not to work.
void CTimeTrackerDlg::parse_string( )
{
char temp[256];
strcpy(temp,buff);
MessageBox(temp,"temp");
CString p,n;
char * pch;
pch = strtok (temp," ");
int count = 0;
while (pch != NULL)
{
if(count == 0)
{
p = pch;
count++;
}
else
{
n = pch;
}
pch = strtok (NULL, " ,.");
MessageBox(p,"password");
MessageBox(n,"name");
}
}
Agan, any help or solutions would be greatly appricated
none
|
|
|
|
|
Example.
/* strtok example */
#include <stdio.h>
#include <string.h>
int main ()
{
char str[] ="This is a sample string,just testing.";
char * pch;
printf ("Splitting string \"%s\" in tokens:\n",str);
pch = strtok (str," ");
while (pch != NULL)
{
printf ("%s\n",pch);
pch = strtok (NULL, " ,.");
}
return 0;
}
Output:
Splitting string "This is a sample string,just testing." in tokens:
This
is
a
sample
string
just
testing
Also in "getline (char* s, streamsize n );" streamsize n mean Characters are extracted until either (n - 1) characters have been extracted.
Good luck.
|
|
|
|
|
modeonetwo wrote:
m_sfile.getline( buff, 256 );
Using hard-coded numbers in this fashion is just asking for trouble. Yours is a mild example, but imagine the troubles you'd have if the size of that buffer needed to change. You'd need to find all references to it. Use the sizeof() operator instead.
modeonetwo wrote:
...it seems not to work
Which means?
What exactly are you tring to do? What is the format of the file that is being read? Mixing CString , char* , strtok() , etc makes me dizzy. That's way more than work than is necessary.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Awile ago, I had asked how to read the binary off of a CD. Alexander said that I would have to use an "IOCTL" (Thanks for your reply Alexander). Sorry, I am still quite new to MFC... What exactly is an IOCTL? Alexander said that the IOCTL to use is IOCTL_CDROM_RAW_READ. I think I have it defined in a header file called ntddcdrm.h. IOCTL_CDROM_RAW_READ is not a function, so I am assuming I need to use it in a function or something? If anyone could help me out, that would be great. Any help is apprectiated.
-Dev578
|
|
|
|
|
Search this forum for a post by longdafeng on 16-Feb. He includes a code snippet on how IOCTL_CDROM_RAW_READ is used with DeviceIoControl() .
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Hi all;
I am currently working on an application aimed at being a learning tool. Well, i'm sort of behind schedule and i need a quick means to render my project using an XP button and menu style. Can somebody please help me in finding the "magic" classes and on how to use them?
Thank you
Regards;
Krugger
|
|
|
|
|
There's a number of companies that sell that sort of stuff. If it was widely, freely available, they wouldn't have a market, so I reckon you'll need to open your chequebook. I worked briefly for one years ago, but I can't remember the name. They advertise here on CP though.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
I use Prof-UIS in Surfulater (see sig). There is an article here on CP and of course there Web site www.prof-uis.com[^] which has lots of demos etc.
Neville Franks, Author of ED for Windows www.getsoft.com and coming soon: Surfulater www.surfulater.com
|
|
|
|
|
Use a manifest style to do this
Check this thread http://www.codeguru.com/forum/showthread.php?threadid=282858
|
|
|
|