|
I want to save mails from inbox folder in msg files and inport into the inbox of another mail box. Please Help me.
|
|
|
|
|
Every time I execute an opengl application compiled under visual c++ 6.0 my PC suddenly shutdowns and restart.
I use visual C++ 6.0 under Windows 2000, but it is the first times I try to develop opengl applications ?
Can anybody help ?
Please help because I have no idea of what causes this crash : must I configure something before developping using opengl ? Is it possible there is a restriction on my computer that blocks any attempt to execute some code including opengl libraries ? Is there any known uncompatibility betwenn opengl and MFC ?
I'm really falling into despair because I cannot do anything with opengl at the moment.
for example I've tried the project "Getting Started With OpenGL" submitted by Amol Kakhandi on this site and when I try to execute the debug version with attached debugger, my PC crashes executing this line :
ShowWindow( hWnd, 1 );
into the WinMain function
Please help
|
|
|
|
|
a system crash doesn't have anything to do with the language u code something,
so this is not the right forum!
Don't try it, just do it!
|
|
|
|
|
Well did you play any opengl made games on your computer?
Well... I am a beginner ...
|
|
|
|
|
Sounds like a video driver bug. What video card are you using? Check that you're using the latest drivers from your video card manufacturer. If you are already using the latest drivers, it may be useful to make a minimal test case and report it to the manufacturer's developer forums.
- Mike
|
|
|
|
|
OpenGL is a open standard for all video card. So, I guess it should not be a cause of problem as compare to your video card drivers or your hardware.
Or worst, does your video card support OpenGL?
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
Well my video card is an old one : voodoo3 AGP.
I'll look for the latest drivers, after all maybe that is.
But if you know common problems with this card (except the oldity) please help
|
|
|
|
|
PROBLEM SOLVED !
I was using beta drivers for my voodoo3 AGP video card
with the lastest drivers... no problem
Thanks for your help !
|
|
|
|
|
How can you reuse a function in which you want to pass a 2 dimentional array using different sizes?
const int arr_size = 20;
main
{
int 2_array[arr_size][arr_size];
....
print_arr(2_array);
}
//parameter must be passed like this
void print_arr(int temp[][arr_size])
{
.....
}
Kevin Shaffer
kshaff03@msn.com
|
|
|
|
|
const int arr_size = 20;
main
{
int 2_array[arr_size][arr_size];
....
print_arr(&2_array);
}
void print_arr(int *temp)
{
.....
}
Don't try it, just do it!
|
|
|
|
|
When I try that, I get the following compilation error:
function call print_arr'(int (*)[10][10])' does not match 'print_arr(int*)'
error occurs when I call the function:
print_arr(&2_array); //<------
Could it be my compiler? I have to use Metrowerks Codewarrior on this particular computer.
Kevin Shaffer
kshaff03@msn.com
|
|
|
|
|
kshaff03 wrote:
print_arr(&2_array); //<------
change it to printf_arr((int*)&2_array);
My God is more powerfull Than Your God.
|
|
|
|
|
My corrections in bold
int main()<br />
{<br />
int array_2[arr_size][arr_size]; <br />
print_arr(2_array);<br />
return 0;<br />
}
Here's a small example program showing 2 diffrent versions of passing 2-dim arrays
#include < iostream >
using namespace std;
const int arr_size = 5;
void print_arr(int *temp)
{
for (int i = 0;i < arr_size;++i)
{
cout << endl;
for (int j = 0;j < arr_size; ++j)
cout << temp[i*arr_size + j] << " ";
}
cout << endl;
}
void print_arr2(int temp[][arr_size])
{
for (int i = 0;i < arr_size; ++i)
{
cout << endl;
for (int j = 0;j < arr_size;++j)
cout << temp[i][j] << " ";
}
cout << endl;
}
int main(int argc, char* argv[])
{
int array2d[arr_size][arr_size] = {0};
print_arr(&array2d[0][0]);
print_arr2(array2d);
return 0;
}
HTH
Jonas
“Our solar system is Jupiter and a bunch of junk” - Charley Lineweaver 2002
|
|
|
|
|
Oops I posted this in the wrong forum originally, I must learn how this internet thing works some time
Does anyone know of a fast algorithm for fading between 2 large, 24 bit bitmaps?
I use:-
colour = newColour*factor + (oldColour * (1.0 - factor));
when factor is between 0.0 and 1.0, but it is very slow iterating through each colour. Are there any standard (easy) methods in DirectX, Direct3D or any libraries, freeware or commercial etc?
"The greatest mistake you can make in life is to be continually fearing you will make one." - Elbert Hubbard
|
|
|
|
|
|
Thanks,
I really should have spotted that optimisation, i.e. allways use integer calculation if possible. It makes a 40% improvement in the calculation time.
"The greatest mistake you can make in life is to be continually fearing you will make one." - Elbert Hubbard
|
|
|
|
|
This might be obvious to you guys, but I've been trying to figure this out for a while now:
I have 2 panes: Left pane has the tree and right pane is blank. I am trying to display different data depending on what item is selected from the tree on left.
I appreciate any and all the help I can get, as I have tried evryting I can think of.
Thanks,
David
|
|
|
|
|
The reason I need this is that I want to show system specific info. For ex. One branch of the tree would show mem usage, while other branch would show Network card info, i.e. ip address, mac address...
Is this better acomplished with panes or forms?
Thanks,
David
|
|
|
|
|
Hi,
How do I find out if a window (ie non-modal dialog) is currently visible. I've implemented a bool which can monitor it as SW_SHOW or SW_HIDE flags are used to show and hide it, but surely there's a 'native' way of finding this out.
Sorry if this is a real basic question but I can't find the answer in MSDN or the faq here. (I'm probably just not looking in the right place.)
Thanks,
Simon
|
|
|
|
|
How about BOOL IsWindowVisible(HWND hWnd) ?
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Codes I found it in codeproject.
Win32 API style
HWND hwndT;
HWND hWndReturn;
hwndT=::GetWindow(m_hWndMDIClient, GW_CHILD);
while (hwndT != NULL)
{
TCHAR szWndTitle[256];
::GetWindowText(hwndT,szWndTitle,sizeof(szWndTitle)/sizeof(szWndTitle[0]));
if (strcmp (szWndTitle, "YOUR WINDOWS TITLE) == 0)
{
hWndReturn = hwndT;
WINDOWPLACEMENT wndpl;
::GetWindowPlacement((HWND) hwndT,&wndpl);
if(wndpl.showCmd == SW_SHOWMINIMIZED)
::ShowWindow((HWND) hwndT,SW_RESTORE);
::SendMessage(m_hWndMDIClient,WM_MDIACTIVATE,(WPARAM)hwndT,0); //Activates it
}//end if
hwndT=::GetWindow(hwndT,GW_HWNDNEXT);
}//end while
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
I am resizing every control of a dialog, and I'm having problems with non-push like check boxes and combo-boxes. At issue is the "real check box" and the "scroll bar" (the downwards arrow) of combo-box. (The caption of the check box and the item display part of the combo box can be resized, at least partly.)
I'm using SetWindowPlacement for the resizing (it makes no difference if I'm using the Windows function or CWnd). This has no effect on the above components.
I tried it with SetWindowPos; the effect is remarkable.
1. the check box can be shrunk (and it works too!), but it can't be stretched.
2. the combo box can be shrunk in the width but not in the height, and when reducing the width, the "scroll bar" remains the same size (it will be even larger than the size of the control all together). The height can't be changed at all.
Does anyone have some experience with this and know of a solution?
Btw, all this is on XP)
|
|
|
|
|
Does anyone know of any source code/examples/libraries that allow you to burn to cd rom drives?
|
|
|
|
|
|
Do you know of any commercial libraries. I have searched but came up short.
|
|
|
|