dev-cpp-users Mailing List for Dev-C++ (Page 677)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
You can subscribe to this list here.
| 2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(15) |
Oct
(115) |
Nov
(154) |
Dec
(258) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
(377) |
Feb
(260) |
Mar
(249) |
Apr
(188) |
May
(152) |
Jun
(150) |
Jul
(195) |
Aug
(202) |
Sep
(200) |
Oct
(286) |
Nov
(242) |
Dec
(165) |
| 2002 |
Jan
(245) |
Feb
(241) |
Mar
(239) |
Apr
(346) |
May
(406) |
Jun
(369) |
Jul
(418) |
Aug
(357) |
Sep
(362) |
Oct
(597) |
Nov
(455) |
Dec
(344) |
| 2003 |
Jan
(446) |
Feb
(397) |
Mar
(515) |
Apr
(524) |
May
(377) |
Jun
(387) |
Jul
(532) |
Aug
(364) |
Sep
(294) |
Oct
(352) |
Nov
(295) |
Dec
(327) |
| 2004 |
Jan
(416) |
Feb
(318) |
Mar
(324) |
Apr
(249) |
May
(259) |
Jun
(218) |
Jul
(212) |
Aug
(259) |
Sep
(158) |
Oct
(162) |
Nov
(214) |
Dec
(169) |
| 2005 |
Jan
(111) |
Feb
(165) |
Mar
(199) |
Apr
(147) |
May
(131) |
Jun
(163) |
Jul
(235) |
Aug
(136) |
Sep
(84) |
Oct
(88) |
Nov
(113) |
Dec
(100) |
| 2006 |
Jan
(85) |
Feb
(119) |
Mar
(33) |
Apr
(31) |
May
(56) |
Jun
(68) |
Jul
(18) |
Aug
(62) |
Sep
(33) |
Oct
(55) |
Nov
(19) |
Dec
(40) |
| 2007 |
Jan
(22) |
Feb
(49) |
Mar
(34) |
Apr
(51) |
May
(66) |
Jun
(43) |
Jul
(116) |
Aug
(57) |
Sep
(70) |
Oct
(69) |
Nov
(97) |
Dec
(86) |
| 2008 |
Jan
(32) |
Feb
(47) |
Mar
(106) |
Apr
(67) |
May
(28) |
Jun
(39) |
Jul
(31) |
Aug
(25) |
Sep
(18) |
Oct
(25) |
Nov
(5) |
Dec
(21) |
| 2009 |
Jan
(33) |
Feb
(27) |
Mar
(27) |
Apr
(22) |
May
(22) |
Jun
(10) |
Jul
(17) |
Aug
(9) |
Sep
(21) |
Oct
(13) |
Nov
(4) |
Dec
(11) |
| 2010 |
Jan
(10) |
Feb
(8) |
Mar
(4) |
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(8) |
Oct
(26) |
Nov
(9) |
Dec
(1) |
| 2011 |
Jan
(21) |
Feb
(16) |
Mar
(4) |
Apr
(19) |
May
(26) |
Jun
(9) |
Jul
(6) |
Aug
|
Sep
(4) |
Oct
(3) |
Nov
(2) |
Dec
(1) |
| 2012 |
Jan
(4) |
Feb
(7) |
Mar
(4) |
Apr
|
May
(1) |
Jun
(10) |
Jul
(1) |
Aug
(1) |
Sep
(18) |
Oct
(3) |
Nov
(1) |
Dec
(1) |
| 2013 |
Jan
(4) |
Feb
(2) |
Mar
(15) |
Apr
(6) |
May
(1) |
Jun
(3) |
Jul
(1) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
(9) |
Dec
|
| 2014 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(5) |
Aug
(4) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
(4) |
| 2015 |
Jan
(2) |
Feb
(3) |
Mar
(1) |
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(9) |
Nov
(35) |
Dec
(6) |
| 2016 |
Jan
(7) |
Feb
(10) |
Mar
(10) |
Apr
(9) |
May
(13) |
Jun
(9) |
Jul
(1) |
Aug
(3) |
Sep
(3) |
Oct
(1) |
Nov
(1) |
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
(1) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <ma...@du...> - 2001-08-07 14:21:28
|
Christian,
First you need to fill an OPENFILENAME structure eg.
OPENFILENAME ofn;
char szFileName[MAX_PATH];
ZeroMemory(&ofn, sizeof(ofn));
szFileName[0] = 0;
ofn.lStructSize = sizeof(ofn);
ofn.hwndOwner = hwnd;
ofn.lpstrFilter = "Bitmap Files (*.bmp)\0*.bmp\0All
Files (*.*)\0*.*\0\0"; /* Filters seperated by null */
ofn.lpstrFile = szFileName;
/* File Name holder */
ofn.nMaxFile = MAX_PATH;
ofn.Flags = OFN_EXPLORER | OFN_FILEMUSTEXIST |
OFN_HIDEREADONLY ;
ofn.lpstrDefExt = "bmp";
Then call it using GetOpenFileName(&ofn)
szFileName will contain the full path and filename if the user selected
a file and OK.
Regards,
Mark Ballard
ma...@du...
|
|
From: Christian W. <Chr...@vo...> - 2001-08-07 11:54:57
|
Hi, i know about the function, but how can i execute this func ??? Did you have a short example ??? Best Regards C -----Urspr=FCngliche Nachricht----- Von: Bruno Berteau [mailto:bbe...@cl...] Gesendet: Montag, 6. August 2001 23:37 An: dev...@li... Betreff: Re: [Dev-C++] Create DialogBox on demand Hi, The GetOpenFilename function is what your looking for. Diese Mail wurde auf Viren überprüft. This mail was checked for virusses. |
|
From: n m. <nma...@ex...> - 2001-08-07 03:33:46
|
Desperate help with Wxwindows and Dev-C++ I for some reason cannot compile simple demo programs written in wxwindows I mean I HAVE DOWNLOADED THE WX PACKAGE FOR DEV WITH ALL The LIBRARIES. Yet even with that I still have problems trying to compile programs such as "minimal" and even "hello world" I have followed the installtions instructions for "/src/msw" yet still no progress could someone who is experienced with Wxwindows and or Dev-C++ please give me step by step instructions on how to compile these progs with Dev-C++ and use the so called "makefiles" that came with Wxwin and use it with Dev-C++. Even better if someone has ACTUALLY compiled any sample Wxwin progs with Dev-C++ please email me as soon as possible. Iam not a newbie and yet the documentation is obscure at best on how to compile the demo progs with the Mingw32 or Cygwin. _______________________________________________________ Send a cool gift with your E-Card http://www.bluemountain.com/giftcenter/ |
|
From: Bruno B. <bbe...@cl...> - 2001-08-06 21:38:00
|
Hi, The GetOpenFilename function is what your looking for. BOOL GetOpenFileName(OPENFILNAME lpofn) The GetOpenFileName function creates a system-defined dialog box that enables the user to select a file to open. Parameters lpofn Points to an OPENFILENAME structure that contains information used to initialize the dialog box. When GetOpenFileName returns, this structure contains information about the user's file selection. Return Value If the user selects a file to open, the return value is TRUE. It is FALSE if an error occurs, the user chooses the Cancel button, the user chooses the Close command on the System menu to close the dialog box, or the buffer identified by the lpstrFile member of the OPENFILENAME structure is too small to contai= n the string that specifies the selected file. The OPENFILENAME structure contains information the operating system uses to initialize the system-defined Open or Save As dialog box. After the user closes the dialog box, the system returns information about the user's selection in this structure. Members of OPENFILENAME structure: lStructSize Specifies the length, in bytes, of the structure. hwndOwner Identifies the window that owns the dialog box. This member can be any valid window handle, or it can be NULL if the dialog box has no owner. hInstance Identifies a data block that contains a dialog box template specified by the lpTemplateName member (if the Flags member is set to OFN_ENABLETEMPLATE). Identifies the memory object containing a dialog box template (if Flags i= s set to OFN_ENABLETEMPLATEHANDLE). If neither OFN_ENABLETEMPLATE nor OFN_ENABLETEMPLATEHANDLE is set, this member is ignored. lpstrFilter Points to a buffer containing pairs of null-terminated filter strings. Th= e first string in each pair describes a filter (for example, "Text Files"), and t= he second specifies the filter pattern (for example, "*.TXT"). Multiple filters can be specified for a single item by separating the filter pattern strings with a semicolon (for example, "*.TXT;*.DOC;*.BAK"). The last string in the buff= er must be terminated by two NULL characters. If this member is NULL, the dialog box will not display any filters. The filter strings are assumed to be in the proper order =BE the operating system does not change the order. lpstrCustomFilter Points to a buffer containing a pair of user-defined filter strings. The first string describes the filter, and the second specifies the filter pattern (for example "WinWord, *.docnn"). The buffer is terminated by two NULL characters. The operating system copies the strings to the buffer when the user close= s the dialog box. The system uses the strings to initialize the user-defined fi= le filter the next time the dialog box is created. If this member is NULL, t= he dialog box lists but does not save user-defined filter strings. Windows 95: If this member is NULL, the member is ignored. If this member is not NULL, the value of the nMaxCustFilter member is use= d to determine the length of the corresponding string. nMaxCustFilter Specifies the size, in bytes or characters, of the buffer identified by lpstrCustomFilter. This buffer should be at least 40 characters long. Thi= s member is ignored if lpstrCustomFilter is NULL or points to a NULL string. Windows 95: The value of nMaxcustFilter is used whenever lpstrCustomFilte= r is defined. nFilterIndex Specifies an index into the buffer pointed to by lpstrFilter. The system uses the index value to obtain a pair of strings to use as the initial filter description and filter pattern for the dialog box. The first pair of strings has an index value of 1. When the user closes the dialog box, the system copi= es the index of the selected filter strings into this location. If nFilterIndex = is zero, the custom filter is used. If nFilterIndex is zero and lpstrCustomFilter is NULL, the system uses the first filter in the buffer identified by lpstrFilter. If all three members are zero or NULL, the system does not u= se any filters and does not show any files in the file list control of the dialo= g box. lpstrFile Points to a buffer that contains a filename used to initialize the File Name edit control. The first character of this buffer must be NULL if initialization is not necessary. When the GetOpenFileName or GetSaveFileName function returns, this buffer contains the drive designator, path, filename, and extension = of the selected file. If the buffer is too small, the dialog box procedure copies the required size into this member. nMaxFile Windows NT: Specifies the size, in characters, of the buffer pointed to b= y lpstrFile. The GetOpenFileName and GetSaveFileName functions return FALSE if the buffer is too small to contain the file information. The buffer should be at least 256 characters long. This member is ignored if lpstrFile is NULL. Windows 95: Specifies the size in bytes or characters of the buffer point= ed to by lpstrFile. The buffer should be at least 260 charcters long. this memb= er is ignored if lpstrFile is NULL. lpstrFileTitle Points to a buffer that receives the title of the selected file. For Windows versions 3.0 and 3.1, this buffer receives the filename and extension without path information. The application should use this string to display the file title. If this member is NULL, the function does not copy the file title. nMaxFileTitle Specifies the maximum length of the string that can be copied into the lpstrFileTitle buffer. This member is ignored if lpstrFileTitle is NULL. lpstrInitialDir Points to a string that specifies the initial file directory. If this member is NULL, the system uses the current directory as the initial directory. lpstrTitle Points to a string to be placed in the title bar of the dialog box. If th= is member is NULL, the system uses the default title (that is, "Save As" or "Open"). Flags Specifies the dialog box creation flags. This member may be a combination of the following flags: Flag Meaning OFN_ALLOWMULTISELECT Specifies that the File Name list box allows multiple selections. (If the dialog box is created by using a private template, the definition of the File Na= me list box must contain the LBS_EXTENDEDSEL value.)Specifies that the File Name list box allows multiple selections. If the dialog box is created by using a private template, the definition of the File Name list box must contain the LBS_EXTENDEDSEL value.When this flag is set, the lpstrFile member points = to a buffer containing the path to the current directory and all filenames in the selection. The first filename is separated from the path by a space. Each subsequent filename is separated by one space from the preceding filename. Note that for the new Explorer-style dialogs (dialogs that have the OFN_EXPLOR= ER flag set), a single null character, \0, separates the filenames, and two null characters, \0\0, terminate the entire string. OFN_CREATEPROMPT Specifies that the dialog box function should ask whether the user wants = to create a file that does not currently exist. (This flag automatically use= s the OFN_PATHMUSTEXIST and OFN_FILEMUSTEXIST flags.) OFN_ENABLEHOOK Enables the hook function specified in the lpfnHook member. OFN_ENABLETEMPLATE Causes the operating system to create the dialog box by using the dialog box template identified by hInstance and lpTemplateName. OFN_ENABLETEMPLATEHANDLE Indicates that hInstance identifies a data block that contains a preloade= d dialog box template. The operating system ignores lpTemplateName if this flag is specified. OFN_EXPLORER Creates an Open or Save As dialog box that uses user-interface features similar to the Windows Explorer. OFN_EXTENSIONDIFFERENT Specifies that the user typed a filename extension that differs from the extension specified by lpstrDefExt. The function does not use this flag i= f lpstrDefExt is NULL. OFN_FILEMUSTEXIST Specifies that the user can type only names of existing files in the File Name entry field. If this flag is specified and the user enters an invalid nam= e, the dialog box procedure displays a warning in a message box. If this flag is specified, the OFN_PATHMUSTEXIST flag is also used. OFN_HIDEREADONLY Hides the Read Only check box. OFN_LONGNAMES Causes the Open or Save As dialog box to display long filenames. If this flag is not specified, the dialog box displays filenames in 8.3 format. This valu= e is ignored if OFN_EXPLORER is set. OFN_NOCHANGEDIR Restores the current directory to its original value if the user changed the directory while searching for files. OFN_NODEREFERENCELINKS Directs the dialog box to return the path and filename of the selected shortcut (.LNK) file. If this value is not given, the dialog box returns the path and filename of the file referenced by the shortcut. OFN_NOLONGNAMES Specifies that long filenames are not displayed in the File Name list box. This value is ignored if OFN_EXPLORER is set. OFN_NONETWORKBUTTON Hides and disables the Network button. OFN_NOREADONLYRETURN Specifies that the returned file does not have the Read Only check box checked and is not in a write-protected directory. OFN_NOTESTFILECREATE Specifies that the file is not created before the dialog box is closed. This flag should be specified if the application saves the file on a create-nonmodify network sharepoint. When an application specifies this flag, the library does not check for write protection, a full disk, an open drive door, or netwo= rk protection. Applications using this flag must perform file operations carefully, because a file cannot be reopened once it is closed. OFN_NOVALIDATE Specifies that the common dialog boxes allow invalid characters in the returned filename. Typically, the calling application uses a hook function that checks the filename by using the FILEOKSTRING message. If the text box in the ed= it control is empty or contains nothing but spaces, the lists of files and directories are updated. If the text box in the edit control contains anything else, nFileOffset and nFileExtension are set to values generated by parsi= ng the text. No default extension is added to the text, nor is text copied to th= e buffer specified by lpstrFileTitle. If the value specified by nFileOffset is less than zero, the filename is invalid. Otherwise, the filename is valid, and nFileExtension and nFileOffset can be used as if the OFN_NOVALIDATE flag had not been specified. OFN_OVERWRITEPROMPT Causes the Save As dialog box to generate a message box if the selected file already exists. The user must confirm whether to overwrite the file. OFN_PATHMUSTEXIST Specifies that the user can type only valid paths and filenames. If this flag is used and the user types an invalid path and filename in the File Name ent= ry field, the dialog box function displays a warning in a message box. OFN_READONLY Causes the Read Only check box to be checked initially when the dialog bo= x is created. This flag indicates the state of the Read Only check box when th= e dialog box is closed. OFN_SHAREAWARE Specifies that if a call to the OpenFile function fails because of a network sharing violation, the error is ignored and the dialog box returns the given filename. If this flag is not specified, the registered message for SHAREVISTRING is sent to the hook function with a pointer to a null-terminated string for the path and filename in the lParam parameter. OFN_SHOWHELP Causes the dialog box to show the Help button. The hwndOwner member must not be NULL if this option is specified. nFileOffset Specifies a zero-based offset from the beginning of the path to the filename in the string pointed to by lpstrFile. For example, if lpstrFile points to t= he following string, "c:\dir1\dir2\file.ext", this member contains the value 13. nFileExtension Specifies a zero-based offset from the beginning of the path to the filename extension in the string pointed to by lpstrFile. For example, if lpstrFil= e points to the following string, "c:\dir1\dir2\file.ext", this member contains the value 18. If the user did not type an extension and lpstrDefExt is NULL, this member specifies an offset to the terminating null character. If the user typed "." as the last character in the filename, this member specifies 0. lpstrDefExt Points to a buffer that contains the default extension. GetOpenFileName a= nd GetSaveFileName append this extension to the filename if the user fails t= o type an extension. This string can be any length, but only the first three characters are appended. The string should not contain a period (.). If this member = is NULL and the user fails to type an extension, no extension is appended. lCustData Specifies application-defined data that the operating system passes to th= e hook function identified by lpfnHook. The system passes the data in the lParam parameter of the WM_INITDIALOG message. lpfnHook Points to a hook function that processes messages intended for the dialog box. An application must specify the OFN_ENABLEHOOK flag in the Flags member t= o enable the function; otherwise, the operating system ignores this structu= re member. The hook function should return FALSE to pass a message to the standard dialog box procedure or TRUE to discard the message. If the hook function processes WM_CTLCOLOR* messages (such as WM_CTLCOLORDLG), the function must return a valid brush handle for painting the background of the dialog box or the corresponding control. lpTemplateName Points to a null-terminated string that names the dialog box template to = be substituted for the standard dialog box template. An application can use the MAKEINTRESOURCE macro for numbered dialog box resources. This member is only used if Fla= gs specifies the OFN_ENABLETEMPLATE flag; otherwise, this member is ignored. |
|
From: <and...@we...> - 2001-08-06 21:30:25
|
hello, i have a question concerning compiler options. i downloaded dev-cpp without compiler (4.01) and gcc2.95-2 which i installed in the following directories: e:\dev-cpp e:\gcc2952mscrt path variable in autoexec.bat is set correctly. taking small example programs and compiling them to *,exe files works fine. the defaut option for gcc seems to be -o. when i try to change this in the meny-entry "options->compiler-options->directories" (for example -S to generate assembler code) it seems to have no effect. does a separate file exist to invoke compiler options or did i do something wrong? greetings andreas schmitzer |
|
From: Nexus <nne...@ya...> - 2001-08-06 20:35:11
|
thanx
Nexus
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of Ioannis
Vranos
Sent: Monday, August 06, 2001 9:11 AM
To: dev...@li...
Subject: RE: [Dev-C++] easy question-clearing the screen?
#include <stdlib.h> system("cls");
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.f2s.com
* Alternative URL: http://run.to/noicys
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf Of Nexus
> Sent: Monday, August 06, 2001 4:33 AM
> To: Dev-Cpp-Users
> Subject: [Dev-C++] easy question-clearing the screen?
>
>
> ..
> Ok guys,
>
> how do you clear the screen?
>
> for example in a command line exe it still has all the junk
> you typed along with the output of the program.
>
> how can i be rid of that?
>
> thanx in advance
>
> Nexus
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.265 / Virus Database: 137 - Release Date: 7/18/01
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.265 / Virus Database: 137 - Release Date: 7/18/01
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.265 / Virus Database: 137 - Release Date: 7/18/01
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
|
|
From: <ste...@ge...> - 2001-08-06 18:23:11
|
strcmp need two strings as parameter.
If the two strings are equal, strcmp returns TRUE. Otherwise it returns
FALSE.
----- Original Message -----
From: "john mills" <jun...@ho...>
To: <dev...@li...>
Sent: Sunday, August 05, 2001 10:51 PM
Subject: [Dev-C++] (no subject)
> hi all. i have 2 questions.
>
> 1) when i try to do the following in my program, it compiles but wheni run
> it i get an mscvrt.dll error, can anyone help.
>
> int numb;
> char* s;
> s = strstr("hello there", "there");
> numb = strcmp("there", numb); <<<---this is where the problem is.
>
> 2) you know you have the template for an API with dev-cpp. well how to i
put
> text inside that program? a button would be good too?
>
> thankyou to anyone that can help.
>
> John.
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: <ste...@ge...> - 2001-08-06 18:20:49
|
I'm having serious memory problems!!!
I load some bitmaps for textures, good! But, the memory used by the =
LoadBMP(char *filename) function isn't released!! So, when I load =
textures under program run several times, the memory just vanishes in my =
app. Even though I load the same ones, into the same pointers. What can =
i do?
My LoadTexture-source is below;
Thanks!
AUX_RGBImageRec *LoadBMP(char *filename)
{
FILE *file=3DNULL;
if(!filename)
return NULL;
file =3D fopen(filename, "r");
if(file)
{
fclose(file);
return auxDIBImageLoad(filename);
}
return NULL;
}
int LoadGLTexture(char path[81], GLuint &texture)
{
int Status =3D TRUE;
AUX_RGBImageRec *TextureImage[1];
memset(TextureImage, 0, sizeof(void *)*1);
if(TextureImage[0] =3D LoadBMP(path))
{
glGenTextures(1, &texture);
glBindTexture(GL_TEXTURE_2D, texture);
glTexImage2D(GL_TEXTURE_2D, 0, 3, TextureImage[0]->sizeX, =
TextureImage[0]->sizeY, 0, GL_RGB, GL_UNSIGNED_BYTE, =
TextureImage[0]->data);
if(Settings.Texturing =3D=3D 1)
{
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, =
GL_NEAREST);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, =
GL_NEAREST);
}
else if(Settings.Texturing =3D=3D 2)
{
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, =
GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, =
GL_LINEAR);
}
else if(Settings.Texturing =3D=3D 3)
{
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, =
GL_LINEAR_MIPMAP_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, =
GL_LINEAR_MIPMAP_LINEAR);
gluBuild2DMipmaps(GL_TEXTURE_2D, 3, TextureImage[0]->sizeX, =
TextureImage[0]->sizeY, GL_RGB, GL_UNSIGNED_BYTE, =
TextureImage[0]->data);
}
}
else
Status =3D FALSE;
if(TextureImage)
{
if(TextureImage[0]->data)
free(TextureImage[0]->data);
free(TextureImage);
}
return Status;
}
|
|
From: Ioannis V. <no...@ya...> - 2001-08-06 15:09:50
|
#include <stdlib.h> system("cls");
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.f2s.com
* Alternative URL: http://run.to/noicys
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf Of Nexus
> Sent: Monday, August 06, 2001 4:33 AM
> To: Dev-Cpp-Users
> Subject: [Dev-C++] easy question-clearing the screen?
>
>
> ..
> Ok guys,
>
> how do you clear the screen?
>
> for example in a command line exe it still has all the junk
> you typed along with the output of the program.
>
> how can i be rid of that?
>
> thanx in advance
>
> Nexus
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.265 / Virus Database: 137 - Release Date: 7/18/01
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: Christian W. <Chr...@vo...> - 2001-08-06 13:22:25
|
Hi List,
how can i realize in a WinPrg to create a OpenFileDialog on demand like:
//--------------------------------------------------------------------------
---
LRESULT CALLBACK WndProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM
lParam)
{
switch(Message)
{
case WM_COMMAND:
{
switch(LOWORD(wParam))
{
case ID_FILE_EXIT: PostMessage(hwnd,
WM_CLOSE, 0, 0); break;
case ID_FILE_OPEN: OPENFILE(); break;
};
};
break;
};
void OpenFile(void)
{
//Here I want to open the Dialogbox
};
The Filename should be stored in a global var. (m_szFILENAME)
Than you for Help
Kind Regards C
Diese Mail wurde auf Viren überprüft.
This mail was checked for virusses.
|
|
From: Nexus <nne...@ya...> - 2001-08-06 13:18:08
|
thanx i will try it later
Nexus
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of Graeme
Foster
Sent: Monday, August 06, 2001 5:58 AM
To: dev...@li...
Subject: RE: [Dev-C++] easy question-clearing the screen?
The system command instructs C to call a operating system command so the
following will clear your screen.
system("cls");
Graeme
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.265 / Virus Database: 137 - Release Date: 7/18/01
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.265 / Virus Database: 137 - Release Date: 7/18/01
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
|
|
From: Graeme F. <gr...@dr...> - 2001-08-06 13:06:42
|
The system command instructs C to call a operating system command so the
following will clear your screen.
system("cls");
Graeme
|
|
From: Ramana K. <ra...@my...> - 2001-08-06 11:18:25
|
Excerpt from win32hlp:
The PlaySound function plays a sound specified by the given filename,
resource, or system event. (A system event may be associated with a sound in
the registry or in the WIN.INI file.)
BOOL PlaySound(
LPCSTR pszSound,
HMODULE hmod,
DWORD fdwSound
);
Parameters
pszSound
A string that specifies the sound to play. If this parameter is NULL, any
currently playing waveform sound is stopped. To stop a non-waveform sound,
specify SND_PURGE in the fdwSound parameter.
Three flags in fdwSound (SND_ALIAS, SND_FILENAME, and SND_RESOURCE)
determine whether the name is interpreted as an alias for a system event, a
filename, or a resource identifier. If none of these flags are specified,
PlaySound searches the registry or the WIN.INI file for an association with
the specified sound name. If an association is found, the sound event is
played. If no association is found in the registry, the name is interpreted
as a filename.
hmod
Handle of the executable file that contains the resource to be loaded. This
parameter must be NULL unless SND_RESOURCE is specified in fdwSound.
fdwSound
Flags for playing the sound. The following values are defined:
SND_APPLICATION
The sound is played using an application-specific association.
SND_ALIAS
The pszSound parameter is a system-event alias in the registry or the
WIN.INI file. Do not use with either SND_FILENAME or SND_RESOURCE.
SND_ALIAS_ID
The pszSound parameter is a predefined sound identifier.
SND_ASYNC
The sound is played asynchronously and PlaySound returns immediately after
beginning the sound. To terminate an asynchronously played waveform sound,
call PlaySound with pszSound set to NULL.
SND_FILENAME
The pszSound parameter is a filename.
SND_LOOP
The sound plays repeatedly until PlaySound is called again with the pszSound
parameter set to NULL. You must also specify the SND_ASYNC flag to indicate
an asynchronous sound event.
SND_MEMORY
A sound events file is loaded in RAM. The parameter specified by pszSound
must point to an image of a sound in memory.
SND_NODEFAULT
No default sound event is used. If the sound cannot be found, PlaySound
returns silently without playing the default sound.
SND_NOSTOP
The specified sound event will yield to another sound event that is already
playing. If a sound cannot be played because the resource needed to generate
that sound is busy playing another sound, the function immediately returns
FALSE without playing the requested sound.
If this flag is not specified, PlaySound attempts to stop the currently
playing sound so that the device can be used to play the new sound.
SND_NOWAIT
If the driver is busy, return immediately without playing the sound.
SND_PURGE
Sounds are to be stopped for the calling task. If pszSound is not NULL, all
instances of the specified sound are stopped. If pszSound is NULL, all
sounds that are playing on behalf of the calling task are stopped.
You must also specify the instance handle to stop SND_RESOURCE events.
SND_RESOURCE
The pszSound parameter is a resource identifier; hmod must identify the
instance that contains the resource.
SND_SYNC
Synchronous playback of a sound event. PlaySound returns after the sound
event completes.
Return Values
Returns TRUE if successful or FALSE otherwise.
Remarks
The sound specified by pszSound must fit into available physical memory and
be playable by an installed waveform-audio device driver. PlaySound searches
the following directories for sound files: the current directory; the
Windows directory; the Windows system directory; directories listed in the
PATH environment variable; and the list of directories mapped in a network.
For more information about the directory search order, see the documentation
for the OpenFile function.
If it cannot find the specified sound, PlaySound uses the default system
event sound entry instead. If the function can find neither the system
default entry nor the default sound, it makes no sound and returns FALSE.
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of Stein Nygård
Sent: Sunday, 5 August 2001 10:46 AM
To: dev...@li...
Subject: Re: [Dev-C++] PlaySound(); ???
Wow... It works!!? Then do you also know how do stop playing, and other nice
stuff?
Thanks alot by the way :)
----- Original Message -----
From: Tomas Dolejsi <mailto:do...@vo...>
To: dev...@li...
<mailto:dev...@li...>
Sent: Saturday, August 04, 2001 11:44 PM
Subject: RE: [Dev-C++] PlaySound(); ???
Hi
try adding -lwinmm (or something like that) to your linker
option (project option - further object files or linker option)
That should help.
-----Original Message-----
From: dev...@li...
<mailto:dev...@li...>
[mailto:dev...@li...]On Behalf Of Stein Nygård
Sent: Saturday, August 04, 2001 4:13 PM
To: C+_malinglist
Subject: [Dev-C++] PlaySound(); ???
Hi!
I was running through some sourcecode the other day, and I ran into this
line;
PlaySound("Data/Explode.wav",NULL,SND_FILENAME|SND_ASYNC);
But, when I use this in Dev-Cpp the Linker says this;
e:\opengl\project 04\main.o(.text+0xa9):main.cpp: undefined reference to
`PlaySoundA@12' <mailto:%60PlaySoundA@12'>
What am I missing?
Thanks! :)
|
|
From: jansb000 <jan...@wx...> - 2001-08-06 09:37:43
|
I think strcmp needs two character strings. Your are giving it one character
string and one integer.
> numb = strcmp("there", numb); <<<---this is where the problem is.
|
|
From: Nexus <nne...@ya...> - 2001-08-06 02:29:22
|
.. Ok guys, how do you clear the screen? for example in a command line exe it still has all the junk you typed along with the output of the program. how can i be rid of that? thanx in advance Nexus --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.265 / Virus Database: 137 - Release Date: 7/18/01 _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com |
|
From: <jsc...@gm...> - 2001-08-05 23:25:51
|
Yes but it will have to work as long as using C++ as language ? (see settings for language) or am i wrong ? On 4 Aug 2001, at 9:29, Luigi Santillo wrote: > Hi ! > > A possible explanation. > > Line #2 of your C source file says: > // this is ... > > I think it should be (assuming you are using ANSI C 89-90) > /* this is ... */ > > At 12.10 03/08/01 -0400, you wrote: > >Hellow I am trying to write a fairly simple program in C and get an err= or in > >line 2 ... > > -- > gisan > gi...@li... > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users > J=FCrgen Schuhmacher jsc...@gm... |
|
From: Alan T. <ala...@3n...> - 2001-08-05 21:13:50
|
Using "//" is a perfectly legitimate way to do comments in C++. That`s one of the differences from C, so no, they`re not using ANSI C --- they`re using standard C++. ----- Original Message ----- > From: Luigi Santillo <gi...@li...> > Subject: Re: [Dev-C++] errors in devc++ with no visible cause > Reply-To: dev...@li... > > Hi ! > > A possible explanation. > > Line #2 of your C source file says: > // this is ... > > I think it should be (assuming you are using ANSI C 89-90) > /* this is ... */ > > At 12.10 03/08/01 -0400, you wrote: > >Hellow I am trying to write a fairly simple program in C and get an error in > >line 2 ... > -- > gisan > gi...@li... > |
|
From: n m. <nma...@ex...> - 2001-08-05 20:55:27
|
>>>>> Desperate help with Wxwindows and Dev-C++ I for some reason cannot compile simple demo programs writ... I mean I HAVE DOWNLOADED THE WX PACKAGE FOR DEV WITH ALL T... LIBRARIES. Yet even with that I still have programs trying... Command? programs such as "minimal" and even "hello world" could > experience with Wxwindows please show me how to compile the progs and > "makefiles" with Dev-C++. Iam not a newbie and yet the documentation is > obscure at best on how to compile the demo progs. > _______________________________________________________ Send a cool gift with your E-Card http://www.bluemountain.com/giftcenter/ |
|
From: john m. <jun...@ho...> - 2001-08-05 20:51:09
|
hi all. i have 2 questions.
1) when i try to do the following in my program, it compiles but wheni run
it i get an mscvrt.dll error, can anyone help.
int numb;
char* s;
s = strstr("hello there", "there");
numb = strcmp("there", numb); <<<---this is where the problem is.
2) you know you have the template for an API with dev-cpp. well how to i put
text inside that program? a button would be good too?
thankyou to anyone that can help.
John.
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
|
|
From: Jared <sto...@ya...> - 2001-08-05 17:39:19
|
I am a beginner at writing C sorce code. Does anyone know a place to get a listing of the errors that occure in the program and what they mean in more detail? _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com |
|
From: Bruno B. <bbe...@cl...> - 2001-08-05 09:58:41
|
You should find som source code at: http://www.programmersheaven.com Bruno Berteau http://perso.club-internet.fr/bberteau/ |
|
From: Tomas D. <do...@vo...> - 2001-08-05 09:34:55
|
I would suggest you to have look at file 'winmm.def'.
There's a list of multi-media-for-windows functions (winmm.dll library).
You can experiment here a little.
Have a good time.
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of Stein Nyg=E5=
rd
Sent: Sunday, August 05, 2001 2:46 AM
To: dev...@li...
Subject: Re: [Dev-C++] PlaySound(); ???
Wow... It works!!? Then do you also know how do stop playing, and other
nice stuff?
Thanks alot by the way :)
----- Original Message -----
From: Tomas Dolejsi
To: dev...@li...
Sent: Saturday, August 04, 2001 11:44 PM
Subject: RE: [Dev-C++] PlaySound(); ???
Hi
try adding -lwinmm (or something like that) to your linker
option (project option - further object files or linker option)
That should help.
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of Stein Nyg=E5=
rd
Sent: Saturday, August 04, 2001 4:13 PM
To: C+_malinglist
Subject: [Dev-C++] PlaySound(); ???
Hi!
I was running through some sourcecode the other day, and I ran into
this line;
PlaySound("Data/Explode.wav",NULL,SND_FILENAME|SND_ASYNC);
But, when I use this in Dev-Cpp the Linker says this;
e:\opengl\project 04\main.o(.text+0xa9):main.cpp: undefined referen=
ce
to `PlaySoundA@12'
What am I missing?
Thanks! :)
|
|
From: Tomas D. <do...@vo...> - 2001-08-05 09:24:49
|
I know nothing at all about playing sounds under windows, i'm sorry.
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of Stein Nyg=E5=
rd
Sent: Sunday, August 05, 2001 2:46 AM
To: dev...@li...
Subject: Re: [Dev-C++] PlaySound(); ???
Wow... It works!!? Then do you also know how do stop playing, and other
nice stuff?
Thanks alot by the way :)
----- Original Message -----
From: Tomas Dolejsi
To: dev...@li...
Sent: Saturday, August 04, 2001 11:44 PM
Subject: RE: [Dev-C++] PlaySound(); ???
Hi
try adding -lwinmm (or something like that) to your linker
option (project option - further object files or linker option)
That should help.
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of Stein Nyg=E5=
rd
Sent: Saturday, August 04, 2001 4:13 PM
To: C+_malinglist
Subject: [Dev-C++] PlaySound(); ???
Hi!
I was running through some sourcecode the other day, and I ran into
this line;
PlaySound("Data/Explode.wav",NULL,SND_FILENAME|SND_ASYNC);
But, when I use this in Dev-Cpp the Linker says this;
e:\opengl\project 04\main.o(.text+0xa9):main.cpp: undefined referen=
ce
to `PlaySoundA@12'
What am I missing?
Thanks! :)
|
|
From: Julio L. <ju2...@ya...> - 2001-08-05 05:08:46
|
You might want to try searching www.freecode.com/email.html for that. They say they have source code in C/C++, Java, Perl, or Visual Basic for a lot of common web uses from email to cgi programming... I have not really looked at any source code on this site, but I am pretty sure you will find what you need there. Original message: FROM: ntlworld.comDATE: 08/04/2001 02:24:21SUBJECT: [Dev-C++] tcp samples Hello All, I wish to write a program that will use the tcp/ip protocol (mainly smtp and pop for email). Does anyone have any good sample code or web links) Thanks Kevin _______________________________________________ Dev-cpp-users mailing list <EMAIL: PROTECTED> http://lists.sourceforge.net/lists/listinfo/dev-cpp-users ===== Julio __________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ |
|
From: Luigi S. <gi...@li...> - 2001-08-05 02:39:42
|
Hi ! A possible explanation. Line #2 of your C source file says: // this is ... I think it should be (assuming you are using ANSI C 89-90) /* this is ... */ At 12.10 03/08/01 -0400, you wrote: >Hellow I am trying to write a fairly simple program in C and get an error in >line 2 ... -- gisan gi...@li... |