|
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
|
|
|
|
|
What was the warning? I find it best to always set the warning level to 4 and to try and eliminate every warning.
Adding the const makes no difference, the code is still wrong and cannot be relied upon to work..
Mike
|
|
|
|
|
Ryan Binns wrote:
Well, you're right. It's not correct code, and is particularly dangerous.
I don't have time to look it up now but I'm virtually certain there's an utterly obscure rule floating around in the spec somewhere: if a function returns a temporary object into a reference variable, that temporary object must stay alive for as long as the reference variable does.
I remember studying some funky magic written by one of those C++ gurus and he was relying on this behaviour.
[edit]
And yes, making the reference const may have had something to do with it
[/edit]
Lets be honest, isn't it amazing how many truly stupid people you meet during the course of the day. Carry around a pad and pencil, you'll have twenty or thirty names by the end of the day - George Carlin
Awasu 2.0.3 [^]: A free RSS reader with support for Code Project.
|
|
|
|
|
Taka Muraoka wrote:
I'm virtually certain there's an utterly obscure rule floating around in the spec somewhere: if a function returns a temporary object into a reference variable, that temporary object must stay alive for as long as the reference variable does
There quite possibly is. I don't remember seeing it, but that doesn't mean it's not there . I still think it's dangerous and shouldn't be relied on.
Taka Muraoka wrote:
I remember studying some funky magic written by one of those C++ gurus and he was relying on this behaviour.
The only reason I can see for doing this is to prevent a potentially time-consuming copy of a large object. In this case, though, I'd see it as more intuitive to return a pointer to a new'd object that would then need to be deleted when finished with. It's much easier for a maintenance programmer to see what's going on, even if it might be slightly less safe.
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"
|
|
|
|
|
hi,
for my evc++ project (runs in WINCE Emulator) which meant for a device , i hav to
display some chars like ▲▼ and left , right arrows in a edit box/ label reading from file.
i am just saving this symbols with some text in a unicode file.while
reading it is read as '?' and i am unable to display those symbols in a
edit box / static text .those symbols are just displayed as some garbage symbols ie box symbol always .
i am using CFile obj for reading from file and using setdlgitemtext method to display it ,CString obj i use to store text.
any project settings need to be changed to display unicode chars? or any conversion has to be made before displaying in wince emulator?
it will be very helpful to me if anybody can help in this regard.
expecting a reply,
R.soodamani
|
|
|
|
|
Hello:
How can Profile the ISAPI Filter in VC.NET?
I'm able to Profile ISAPI DLL in Visual C++ 6.
Thanks
|
|
|
|
|
I have a MDI application when it is created the memory occupied for that application in task manager is around 2000K i open some document in that MDI application, the usage of memory grows up. Now i minimize the main frame window and i notice in task manager the memory is decreased to around 1000K.
I think the resouces which were not used are released when the mainframe is minimized.
Please let me know if anybody knows....
Which function is called when the mainframe is minimized?
How the resources are released when it is minimized?
vidya
|
|
|
|
|
What you are seeing is probably the result of RAM being swapped to disk (i.e., virtual memory). This is SOP with Windows.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
How to use VC++ with MsWord.olb to create a table in a *.doc?
|
|
|
|
|
Hi,
I have been asked to possibly make modifications/tweaks to a program my colleague made about a year ago. It is all written in MFC etc... He was good at that and more importantly is no longer working for us, I am not good at it, never done it, never had the time As I was always busy writing C programs for diverse platforms. As I try to compile his software everything works except for it does not recognise a "CFileHeader" data type. Logically I would think this needs to be defined in some header file somewhere. However, I cannot find it anywhere. Can anybody tell me where this needs to be defined and where i can find/introduce the definition ??
Any help much appreciated.
Filip
|
|
|
|
|