|
Fieryindian wrote: is there any way i can know the APIs included in each of the headers of C++ ?
You need to open that header, to know that.
|
|
|
|
|
Dear friends,
Im doing a project to my university which is a "LIVE E-LEARNING ENVIRONMENT"
I have to find a C# coding for this purpose which i can capture each and every moment of the computer screen.
I have found a software called "camtasia",but lack to edit the screen capturing.
Please help me with a coding to support my need.
thank you
khema
|
|
|
|
|
Your question is C# or C++ ? if C# you must ask here[^]
|
|
|
|
|
khema wrote: I have to find a C# coding
But this is vc++ forum...
nave
|
|
|
|
|
Plzz, go to the C# forum.
Come online at:-
jubinc@skype
|
|
|
|
|
|
Hi all,
It is very common to create a mdi child in a initially maximized state in some cases. I set SW_MAXIMIZE style in the MDICREATESTRUCT structure then send a message to mdi client window. After that, I saw twin sizing boxes on the top-right corner of my frame window (a pair of [Min][Max][Close] tri-buttons). If I restore the child window, the child got one and there was still one remaining on the corner. I was using Win32 SDK, not MFC. The code I used to create the child is like this:
HWND child_createWnd(HWND hwndClient, int x, int y, int w, int h, TCHAR szCaption[], TCHAR szFilename[])
{
HWND hwndChild ;
MDICREATESTRUCT mdicreate ;
if(!childClass) childClass = zw_child_registerClass();
mdicreate.szClass = szChildClass ;
mdicreate.szTitle = szCaption ;
mdicreate.hOwner = GetModuleHandle(0) ;
mdicreate.x = CW_USEDEFAULT ;
mdicreate.y = CW_USEDEFAULT ;
mdicreate.cx = CW_USEDEFAULT ;
mdicreate.cy = CW_USEDEFAULT ;
mdicreate.style = WS_VSCROLL | WS_HSCROLL | WS_MAXIMIZE; <code>
mdicreate.lParam = (LPARAM)szFilename ;
hwndChild = (HWND) SendMessage (hwndClient,
WM_MDICREATE, 0,
(LPARAM) (LPMDICREATESTRUCT) &mdicreate) ;
return hwndChild;
} I followed Petzold's sample code (cha18, Programming Windows 5ed.)to do this. I wander if I missed something. So I tried it on the sample code directly and add the flag to the style, but still happened.
Did anyone ever get this problem? I'm very thankful if anyone can help me.
|
|
|
|
|
I read "Daniel Bowen, Creating a new MDI child: maximization and focus issues" and got some idea. I should handle redraw and focus issues. Set the client window as MDIS_ALLCHILDSTYLES style and change the function to :
HWND child_createWnd(HWND hwndClient, int x, int y, int w, int h, TCHAR szCaption[], TCHAR szFilename[])
{
HWND hwndChild ;
MDICREATESTRUCT mdicreate ;
int fMax = 0;
if(!childClass) childClass = zw_child_registerClass();
mdicreate.szClass = szChildClass ;
mdicreate.szTitle = szCaption ;
mdicreate.hOwner = GetModuleHandle(0) ;
mdicreate.x = CW_USEDEFAULT ;
mdicreate.y = CW_USEDEFAULT ;
mdicreate.cx = CW_USEDEFAULT ;
mdicreate.cy = CW_USEDEFAULT ;
mdicreate.style = <code>WS_OVERLAPPEDWINDOW | WS_CHILD | WS_CLIPSIBLINGS | WS_VSCROLL | WS_HSCROLL;</code>
mdicreate.lParam = (LPARAM)szFilename ;
<code>SendMessage(hwndClient, WM_SETREDRAW, FALSE, 0); </code>
hwndChild = (HWND) SendMessage (hwndClient,
WM_MDICREATE, 0,
(LPARAM) (LPMDICREATESTRUCT) &mdicreate) ;
<code>
SendMessage(hwndClient, WM_MDIGETACTIVE, 0, &fMax);
fMax? ShowWindow(hwndChild, SW_MAXIMIZE) : ShowWindow(hwndChild, SW_NORMAL);
SetFocus(hwndChild);
SendMessage(hwndClient, WM_SETREDRAW, TRUE, 0);
RedrawWindow(hwndClient, NULL, NULL, RDW_INVALIDATE | RDW_ALLCHILDREN);</code>
return hwndChild;
Right now everything is correct except very slow. If you have better idea, please let me know, thanks.
|
|
|
|
|
Where exactly is glBindTexture defined? Or is this just a sign that I need to upgrade from VC++ 4.0?
|
|
|
|
|
Never mind. Apparently, I do indeed need to update my 10-year-old software! I wonder why...
|
|
|
|
|
From the MSDN
Requirements
Windows NT/2000: Requires Windows NT 4.0 or later.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Header: Declared in Gl.h.
Library: Use Opengl32.lib.
|
|
|
|
|
OK then I've got a problem, because my version of gl.h doesn't have it.
|
|
|
|
|
hi,all
Here I have a dialog box, a edit control and a list control, dialog box is the parent of both edit and list.
Now I want to overlap a edit control onto a list control, I use m_Edit->SetWindowPos(&m_List,.....), However, when I click mouse in edit control, message still pass to list control not edit control, how to solve this?Thanks.
|
|
|
|
|
try calling m_Edit->BringWindowToTop() in the onInitDialog() funtion.
are you trying to make the cells in the listctrl editable? If so its better to make the edit control as the child of the list ctrl.
nave
|
|
|
|
|
zouchao1112 wrote: hi,all
Here I have a dialog box, a edit control and a list control, dialog box is the parent of both edit and list.
Now I want to overlap a edit control onto a list control, I use m_Edit->SetWindowPos(&m_List,.....), However, when I click mouse in edit control, message still pass to list control not edit control, how to solve this?Thanks.
SetWindowPos!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
What APIs are available to send a SMS Text message to a Mobile Phone.
Current Compiler is VCPP 5.0, Running on XP. Target is XP
LateNightsInNewry
|
|
|
|
|
LateNightsInNewry wrote:
What APIs are available to send a SMS Text message to a Mobile Phone.
Current Compiler is VCPP 5.0, Running on XP. Target is XP
isn't your compiler is quite old.. try api provided by free sms services! like cellebrum.com
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
ThatsAlok wrote: isn't your compiler is quite old.. try api provided by free sms services! like cellebrum.com
Yes, My Compiler is quite old and tired, As is the computer it runs on. (This is an issue which is currently being addressedd) At the same time, this is NOT a compiler issue, it is a question of Libraries and Header Files, and finding out where to find what.
From experience, Microsoft seldomly re-compiles their actual compilers, it's the IDE that changes, and also the libraries that come with the compiler.
LateNightsInNewry
|
|
|
|
|
updated code again, I think my function isn't working because when i return the value it doesnt look like its changed to celsius. Also, i only know how to print the value of myarray[0], how do i print each value entered? Thanks for the help.
Code:
// Computer Lab test.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
using namespace std;
double c;
double CheckCent(double c)
{
if (c>30)
{
return c - 32 /1.8;
}
return c;
}
// call this function to convert fahrenheit values into celsius (function name is CheckCent)
int _tmain(int argc, _TCHAR* argv[])
{
double myarray[51];
//double i;
int flag;
flag=1;
int i;
for(i = 0; i < 51 && flag == 1; i++)
{ // Loop to enter temperatures - pressing 1 continues, pressing 0 stops //
cout << "Enter Temperature Reading:";
cin >>myarray[i];
cout << "Enter 1 to input more values, 0 to stop";
cin >>flag;
}// End for
cout << "Number of elements in the array is: " << i;
while(i < 50)
{
myarray[i]=CheckCent(myarray[i]);
cout <<"\n";
cout << myarray[0];
return 0;
}
}
|
|
|
|
|
You have the Source Code in Hand!
Why not load it in your debugger and find out Where and Why it does not work.
I am afraid that the reality is that writing code involves debugging. actually, it is an integral part of it. of all the members on this forum, I guess that few of the experts regularly write code that always compiles. Fewer write code that immediately performs as advertised. Those that do are continually worried about what their code 'might' do under adverse conditions.
Unfortunately Debugging is part and parcel of writing code. This forum is NOT about doing the Debugging for you.
LateNightsInNewry
|
|
|
|
|
Is this better? I kinda figured out how to use the function, but now I think thats where my problem lies. When i choose say 35 as the first value inputted, and then stop the loop, i dont get a correct celsius value but a number like 14.2323.2323. Here is my updated code, thanks.
[code]
// Computer Lab test.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
using namespace std;
// call this function to convert fahrenheit values into celsius (function name is CheckCent)
double CheckCent(double c)
{
if (c <= 30) return c;
c=c-32/1.8;
return c;
}
// main function
int _tmain(int argc, _TCHAR* argv[])
{
double myarray[51];
//double i;
int flag;
flag=1;
int i;
for(i = 0; i < 51 && flag == 1; i++)
{ // Loop to enter temperatures - pressing 1 continues, pressing 0 stops //
cout << "Enter Temperature Reading:";
cin >>myarray[i];
cout << "Enter 1 to input more values, 0 to stop";
cin >>flag;
}// End for
cout << "Number of elements in the array is: " << i;
cout <<"\n";
for(int j=0;j<=i;j++)
{
myarray[j]=CheckCent(myarray[j]);
cout << myarray[0];
}
return 0;
}
[/code]
|
|
|
|
|
Here's my function :
<br />
double FahrenheitToCelsius( double reading )<br />
{<br />
return ( reading - 32.0 ) / 1.8;<br />
}<br />
|
|
|
|
|
That's what I would have written too, but, This member appears not to know how to debug, or, that debugging is an integral part of code developmpent.
LateNightsInNewry
|
|
|
|
|
print fibbonacci series astarting from 0,1,1,2,3,5.... till less than 500
|
|
|
|
|
What is a typical CIS course assignment?
Thanks for playing the CodeProject version of Jeopardy.
led mike
|
|
|
|
|