|
Hello,
you are right. I remember reading the variable names are resolved to their respective addresses during compilation.
I could be wrong though.
|
|
|
|
|
Hi,
I create a combo dynamically like this. I want to get a vertical scroll bar, but I don't how. Can anybody help me out.
CComboBox m_SchemaCombo;
m_SchemaCombo.Create(WS_CHILDWINDOW | WS_VISIBLE | WS_TABSTOP |
CBS_DROPDOWNLIST,
CRect(row3,
frameTop + 3 * topBottomOffset + buttonHeight3,
editBoxWidth,
frameTop + 3 * topBottomOffset + buttonHeight2 + buttonHeight2 + buttonHeight2),
this, IDC_SCHEMA_COMBO);
Thanks,
Prahsant
|
|
|
|
|
Hi,
Im starting a project to make a low resource constantly running screen recrder for windows. It will output a medium quality video in a common format. I was just wondering if anyone has any ideas on how to start this. I have never seen any source code for anything similiar to this. Any help or advice with the following would be great
1) How to turn a series of jpegs into a movie?
2) How to record directly to video using DivX compression.
3) The best language to use C# or C++
I have found many plugins and small programs that do the job of compression but I intend to write everything from scratch, many thanks.
|
|
|
|
|
what is the problem? fetch the screenshot using GDI, extract the raw data of the bitmap and pass it to the video compressor. what is so difficult about this?
Don't try it, just do it!
|
|
|
|
|
How can we control the Z Order of controls on a Dialog?
kriaz.
|
|
|
|
|
SetWindowPos(...)
ARSALAN MALIK
|
|
|
|
|
If you only need to do this at design time then use the tab order (Ctrl+D) in the resource editor. Tab order 1..n when 1 is furthest away and 'n' is nearest i.e. n will be on top of 1.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Williams (Little Britain)
|
|
|
|
|
Hi All,
I am creating crystal reports(version 8.5) using VC++ code.
Its working fine on the the machines which have crystal reports installed .
however same is not the case with non crystal machines even after registring the Crystl32.OCX used by the Crystal Reports Object.
Do I need to do some thing in addition to this ?
kindly help.
thx
Sanjay
|
|
|
|
|
Do you have run time crystal dll's installed? I mean to say, you have to deploy some dll's with which you can view the reports. (view-only)
|
|
|
|
|
I am getting error " Unable to logon to server" while trying to run the report.
DSNs are same on both type of machines.
(one with crystal reports and one without it )
I have already distributed these dlls with the application.
(Crystl32.OCX,Craxdrt.dll, CRViewer.dll,CRDesignerCtrl.dll,Craxddrt.dll)
Is there anything db specific which needs to be distributed ?
thanks
Sanjay
|
|
|
|
|
Hi all,
Is there any way to hide an exe file , which was run from my code by the shell_execute command ?
Is there any other command that I can use in order to run an exe file from my code in hide mode ?
|
|
|
|
|
What do you want to hide, application window, taskbar icon or process from task manager?
ARSALAN MALIK
|
|
|
|
|
I want to hide an app window , which I trigger from my code
|
|
|
|
|
You can use WinExec(...) , with second parameter SW_HIDE .
ARSALAN MALIK
|
|
|
|
|
That'll only work if the writer of the app used the nCmdShow parameter passed to WinMain for displaying the window...
If the programmer didn't use the nCmdShow parameter, you should send a WM_SHOW message to the window with some parameter set to FALSE (I think it was wParam, but I'm not sure ).
Multiply it by infinity and take it beyond eternity and you'll still have no idea about what I'm talking about.
|
|
|
|
|
Hey all,
Had a brief search but couldn't find anything.
VC++ 6.
Ok, I have a class, which contains a CString declaration:
CString sString;
In the constuctor of the class, I set the sString = "";
I also provide Set and Get functions as inline functions in the header file. These are not being called at the moment.
I try to write the value out to the database, expecting the sString to be equal to "" (for the time being at least) and its got some rogue value in it, e.g. "Test". All the other CStrings in this class are also being see to "Test". (These other CStrings are being used in exactly the same way).
I have noticed that the pch address are all the same. Is this correct? Have I made a mistake? Any ideas?
Cheers
Jock
|
|
|
|
|
You definitely have something wrong. It sounds like you might be corrupting the heap.
CString will be initialized to an empty string so there is no need to assigh "" to it, not that this is relevant.
I'd trace it through in the Debugger keeping an eye on sString et.all.
Neville Franks, Author of ED for Windows www.getsoft.com and coming soon: Surfulater www.surfulater.com
|
|
|
|
|
The pbm is with config the comport settings.
I've to choose baud rate,... thro' combo box and config according to that value.
I've placed combo box for-- baudrate,stopbit,databit,parity,flowcontrol.
I've choosen combobox variable as CString.
In the function,
ConfigurePort(DWORD BaudRate, BYTE ByteSize,DWORD fParity, BYTE Parity, BYTE StopBits)
How can i declare the combo box variables instead of the above variables?
When i call that port.configport(, , , , , ,) Here--- How can i give the combo box value?
mithila
|
|
|
|
|
The pbm is with config the comport settings.
I've to choose baud rate,... thro' combo box and config according to that value.
I've placed combo box for-- baudrate,stopbit,databit,parity,flowcontrol.
I've choosen combobox variable as CString.
In the function,
ConfigurePort(DWORD BaudRate, BYTE ByteSize,DWORD fParity, BYTE Parity, BYTE StopBits)
How can i declare the combo box variables instead of the above variables?
When i call that port.configport(, , , , , ,) Here--- How can i give the combo box value?
mithila
mithila
|
|
|
|
|
anuchelvi wrote:
I've placed combo box for-- baudrate,stopbit,databit,parity,flowcontrol.
Does this mean that you have five comboxes?
anuchelvi wrote:
I've choosen combobox variable as CString.
The variable associated with the combobox should be of type CComboBox .
anuchelvi wrote:
In the function,
ConfigurePort(DWORD BaudRate, BYTE ByteSize,DWORD fParity, BYTE Parity, BYTE StopBits)
How can i declare the combo box variables instead of the above variables?
Why would you want to declare tham again? They are declared once within the owning class.
To get the current text within a combobox, use GetWindowText() .
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Problem: I need to create a Client/Server Application.
[Server] Winsock host, MS SQL 7/2000 connectivity. The server must accept multiple connections and return database query results in text/xml
help examples may have an access database.
[Client] Winsock Client, Convert text/xml data from server into recordset. These rescordset will be displayed on forms in an MDI environment on a Win32 platform
Current Status: I can create the above scenario in Visual Basic. I need to create it in Visaul C++ because I understand one has more control of winsock in C++.
I have tried to use VB-to-C++ converters this was no help
I have tries combining bits and pieces of samples from this site and the most successful was using NDK, DAO, ATL and Dialog based. Tried converting it to MDI then all hell broke lose.
Reason: I have and application developed in visual basic that uses the data environment connections, and reports using Seagate Crystal. This application run over a WAN/LAN (two cities) the connection is slow especially when trying to get a recordset
Check out new freeware version of Prof-UIS 2.25
http://www.prof-uis.com
|
|
|
|
|
Hi,
A colleague of mine is using a syntactic construct I have never encountered before and I thought was incorrect. But, against all (my) odds, it appears to work.
The gist of it can be reduced to:
<br />
std::string function(void)<br />
{<br />
return "hello";<br />
}<br />
<br />
void sample(void)<br />
{<br />
std::string& reference = function();<br />
<br />
std::cout << reference + ", world!" << std::endl;<br />
}<br />
I have tested this with Visual Studio .NET, under Debug and Release build and no crash occurred. Since Visual Studio .NET is supposed to be standard compliant, it must be OK then.
Somehow, I don't feel it's correct, but I don't know how to make sure about this.
Can anyone give me some precisions?
Cheers
--
Maxime Labelle
maxime.labelle@freesurf.fr
|
|
|
|
|
Maxime Labelle wrote:
Somehow, I don't feel it's correct, but I don't know how to make sure about this.
Well, you're right. It's not correct code, and is particularly dangerous. The fact that it didn't crash is purely luck. Basically, you can't take the address (which is what a reference boils down to) of a temporary object, such as the one returned by function() , because the compiler may destroy the object when it hits the next reparse point, in this case the end of the statement. I guess the compiler is recognising that the object is still referred to and is delaying the destruction of it, but I've never seen it happen before, and would strongly recommend against relying on it.
I'm not sure what the standard says about this, but it's certainly not safe code.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
|
Err,
as a matter of fact the compiler complains with warning level 4. But what about the following code, then:
<br />
const std::string& reference = function();<br />
Cheers.
--
Maxime Labelle
maxime.labelle@freesurf.fr
|
|
|
|
|