|
Christian Graus wrote:
Is this your homework ?
Nish [BusterBoy] wrote:
Now, that's almost an automatic question to such posts eh?
Whenever someone asks for something that's really easy and seems like it might be divorced from the real world, yeah. I don't mind if people ask homework questions, except when they ask for a pat solution. In this case I wasn't sure if it was homework or if so, if the person was asking for a complete solution ( which is bad ), or was stuck on one bit ( which is fine ). I had envisaged a homework question where you parse the month name to add a number of days and then add the number of days into that month, or get the values out of an array. It seemed a likely homework question.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
Convert the date to COleDateTime , and you can get the day number with the COleDateTime::GetDayOfYear() function.
|
|
|
|
|
Hello,
I'm very new to using dc and CBrush.. Basicly I have the following code in my app to custom draw the header of my list control.. I have every thing working except for that I want to change the "COLOR_3DFACE" to a RGB color. How would I go about doing this?
dc.FillRect(rcLabel, &CBrush(::GetSysColor(COLOR_3DFACE)));
Thanks,
Rob
|
|
|
|
|
FillSolidRect allows you to specify a color directly. A color is a DWORD is stored generally using COLORREF, which again is a typedef for DWORD. To declare a COLORREF use RGB, as in COLORREF c = RGB(255,0,255);
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
Hello,
I would like to use wildcards with the DeleteFile() function, but I've been unsuccessful so far when using the '*' character. Does anyone know of a better function to use?
Better yet, does anyone know how to use a RemoveDirectory() function that doesn't require the directory be empty first?
-Pete
|
|
|
|
|
|
Hi !
I wan't to develop a test app to add shapes to a CScrollView on mouse clicks.
I created a base class CShape and derived CSquare, CCircle ...
classes.
each class has a .Draw method.
To store objects, I created a class
class CShapeList : public CList<cshape, cshape="">
with a .Draw method that iterates through items and calls .Draw for each object.
The problem is that the method invoked is always the base class CShape .Draw
HELLLLLP !
|
|
|
|
|
You need to make your function virtual. To do this, add the keyword 'virtual' in front of it's declaration in the class's header file.
You might wanna read up on this 'cause it's a rather important part of C++ .
--
Andrew.
|
|
|
|
|
Same way there is code to download a file via ftp or http service, is it possible to download results from a form?
An example, I can make this with my code
.....
AfxParseURL("ftp://tgftp.nws.noaa.gov", dwServiceType, strServerName, strObject, nPort);
if((dwServiceType==INTERNET_SERVICE_FTP)&&!strServerName.IsEmpty())
{
try
{
pConn = m_pInetSession->GetFtpConnection(strServerName, "", "", nPort, FALSE);
etc.........
But, what about if the page addres I want is someting like this (the result of a form)?:
"http://weather.uwyo.edu/cgi-bin/sounding?region=europe&TYPE=TEXT%3ALIST&YEAR=2001&MONTH=11&FROM=1212&TO=1212&STNM=08430"
Thank you.
|
|
|
|
|
You can display the Form using the CHtmlView Class, when you have the form you can analize the html.
But I don't understand what you need...
The form will show you some results? and you want to download the results?
Please explain....
Best Regrads!!!
Chau!!!
Carlos Antollini.
|
|
|
|
|
Well, the results are meteorological data I want to process and make a graph with them.
|
|
|
|
|
Okay luis, hablemso en español.
Lo que podes hacer son dos cosas o biien modificar tu ASP para que te deje archivos con los datos que deseas obtener. la otra es usar la clase CHTMLView. editar la pagina, en el evento onnavigatecomplete analizarla y asi obtener los datos que desas, pero eso puede ser muy complicado, yo sierta vez lo hice, y bueno si te sirve te puedo enviar el ejemplo de como analizaba el contenido de la pagina.
Saludos.
CARLOS....
I also speak spanish. Hasta Luego!!!
Bob is saying his first words in spanish!!!!
Carlos Antollini.
|
|
|
|
|
the below declarations of a simple function in a regular dll in vc++ successed only in vc++ client program and fails in delphi client program.
1. extern "C" __declspec(dllexport) int func(int num)
In Delphi = "access violation at address"
2. extern "C" __declspec(dllexport) int _stdcall func(int num)
In Delphi = Not successed to connect to the dll function at all.
=======================================================================
3.
I saw a declaration of function of dll that created in c and succesed in delphi client program and it seems so:
int far PASCAL _export func(int num)
------------------------------------------
I tried it and I gets warning C4236: nonstandard extension used : '_export' is an obsolete keyword, see documentation for __declspec(dllexport)int far PASCAL _export func(int num)and It not works of course
=======================================================================
What is the sulation ???
|
|
|
|
|
i use:
extern "C"
{
extern int WINAPI myFunc(int param);
}
this works for VB, Delphi, Access, PowerBasic, C/C++, etc..
-c
POKE 808,234
|
|
|
|
|
Manny thanks !
And where is the body of the function ?
|
|
|
|
|
I change my declaration in my dll to that frame:
extern "C" {extern int WINAPI myFunc(int param);
{Body func}
}
Now How have I declare that func in my client program in vc++ for example ??
|
|
|
|
|
Please, help someone ...
==============
www.design.kg
|
|
|
|
|
Can you to be more clever Please...
Best Regards...
Carlos Antollini.
|
|
|
|
|
|
Say what ? What do you want it to do with them, just throw them out, or not display them, or parse them, or what ?
You need to subclass CEDit methinks, whatever you are trying to do.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
If it's possible
==============
www.design.kg
|
|
|
|
|
I said
Say what ? What do you want it to do with them, just throw them out, or not display them, or parse them, or what ?
Karavaev Denis wrote:
If it's possible
So which is it then ? Just to recap the options:
1/ Just throw them out - the tags are lost
2/ Not display them - the tags are somehow stored in the edit box but not displayed
3/ Parse them - the tags are not visible and they take effect.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
you want your edit box to
just throw out the input and not display it and parse it?
Just a clue as to what you actually want to do would help a bit. No, I don't mean a bit, I mean loads.
We do it for the joy of seeing the users struggle.
|
|
|
|
|
- Take a look at such codes below:
loop1{
loop2{
// want to break here
}
}
//next code to execute
- If I want to break from "// want to break here" to "//next code to execute", how to use the statement "break" to implement the task? Can I use "break [label]", like in Java?
- Can you show me an example?
- Regards,
Maer
|
|
|
|
|