|
|
Thanx just what i was looking for.
Still Alive!!!
Thank you God.
|
|
|
|
|
Unfortunately, it doesn't work.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
|
Unfortunately, a version resource appears to be only recognized when present in the .rc file, not in the .rc2 (or #includ ed by it).
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Hi,
I have a question about creating sockets which can connect and dis-connect. I tried using set socket options with the REUSEADDR option. It does not seem to work. I get an error when I disconnect and try to re-connect. First, I set the socket and then I call set socket options before I perform a bind. Is this the correct procedure? Any ideas on what I'm doing wrong?
|
|
|
|
|
Anonymous wrote:
error when I disconnect and try to re-connect.
is the client trying to bind? clints dont bind, servers bind.
Still Alive!!!
Thank you God.
|
|
|
|
|
I have an executable. If the user clicks on it, and
types in some data and saves and retrieves, there is no
problem.
If they click on the executable twice and two instances
popup, then data between the two programs is getting
mixed. I designed the software to save and retrieve
temporary data from ascii txt files stored in this
one directory. So both instances are accessing that
same temporary directory and the data is getting mixed
up.
I either have to rewrite my saving and retrieving
mechanism...or is there a way to only let one instance
of an executable be executed at a time?
Please any response any one can give me will be greatly
appreciated.
Sincerely,
Danielle (an overworked graduate student)
|
|
|
|
|
See here and here.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Create a Mutex call GetLastError, if it returns ERROR_ALREADY_EXISTS, there is another instance runnning. If not release the mutex just before your app is unloading.
|
|
|
|
|
About a month ago I found a dandy little article that demonstrated how to retrieve a Bitmap image from the clipboard.
The author created a single structure containing a BITMAPHEADERINFO and another structure (BITMAP?). This was mapped to the global memory data he got from the clipboard. He then was able to get an HBITMAP and HPALETTE and display the image.
The secret the author discovered was that Microsoft did not document that these are the two datastructures microsoft uses to put a bitmap on the clipboard.
I've searched everywhere. I'm sure I saw it here on the Code Project but I cannot find it now.
I've found some other articles on reading bitmaps from the clipboard. I want this one because it was so simple.
Thanks,
Sieg
Sieg_Heintze@yahoo.com
|
|
|
|
|
Was it this one?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Thank you to those who have helped me before. It has been a tremendous help. Because of you guys I was able to figure my errors and get done what I wanted to get done.
My new problem should be easy I just don't really know how to use what I got. I'm trying to format a edit box to display the currency symbol($) and set the precision that way my user(s) can't put in more then 2 after the decimal. (i.e. 12.333). I was reading this article and I was beganing to understand it but when I tried it out it didn't work. If anyone has any insight plz let me know.
http://www.codeproject.com/editctrl/ncpedit.asp#xx37605xx
Sincerely
David Berg
AIM- CaNorDBerG
email- quake3b@yahoo.com
|
|
|
|
|
MrNiceBerG wrote:
I was reading this article and I was beganing to understand it but when I tried it out it didn't work. If anyone has any insight plz let me know.
Perhaps the author could help?
There are plenty of other masked edit controls here.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Hi, I have a more general question to you VSS users:
How do you organize multiple projects with their header dependencies?
My main problem are some .lib projects that are used by some others. The initial decision was to "keep everything of one project together", so the lib with it's headers resides in one folder (e.g. Sources\Lib1) and the headers are shared to the Include folder.
That's fine until I have to work both on a lib header and a dependent project, in which case I need to "check in / get latest" the header after each modification. (or copy around manually)
How do you? Any tips?
Flirt harder, I'm a Coder
mlog || Agile Programming | doxygen
|
|
|
|
|
Where is the problem, during the compilation or linking?
Hope you are taking care different builds like release, debug etc
Still Alive!!!
Thank you God.
|
|
|
|
|
hi,
When WideCharToMultiByte is used for UTF-8 encoding it return garbage when called outside the context of the main thread. May be its not limited to UTF-8 encoding.
Any ideas???
Thx & Have a nice day
|
|
|
|
|
Most of the time when we say that there is a bug in the API, its usally that you are using the api in a wrong way.
Still Alive!!!
Thank you God.
|
|
|
|
|
|
Hey,
I'm trying to get some code here to compile and I'm having an issue. The "GetMinVal" method below should be defined as returning a const since it doesn't modify the underlying class. I also eventually need to access it from a
friend std::ostream& operator << (std::ostream&, const WT300_QaStateTable&);
method which will need for it to be a const.
My question is how do I make the following compiler error go away and still maintain "GetMinVal" as a const method.
Gotten using VC++ 2003, ver 7.1...
...\c2678_err.cpp(17): error C2678: binary '[' : no operator found which takes a left-hand operand of type 'const MAP_STR_STR' (or there is no acceptable conversion)
<br />
#include "StdAfx.h"<br />
<br />
#include <map><br />
#include <string><br />
<br />
using namespace std;<br />
<br />
typedef map<std::string, std::string> MAP_STR_STR;<br />
<br />
class c2678_err<br />
{<br />
public:<br />
c2678_err(void);<br />
~c2678_err(void);<br />
<br />
void SetMinVal(std::string key, std::string val) {mMinVal[key] = val;}<br />
std::string GetMinVal(std::string key) const {return mMinVal[key];}
<br />
private:<br />
<br />
MAP_STR_STR mMinVal;<br />
};<br />
<br />
c2678_err::c2678_err(void)<br />
{<br />
}<br />
<br />
c2678_err::~c2678_err(void)<br />
{<br />
}<br />
<br />
main()<br />
{<br />
c2678_err myProblem;<br />
std::string howMany;<br />
<br />
myProblem.SetMinVal("dogs", "02");<br />
howMany = myProblem.GetMinVal("dogs");<br />
<br />
cout << howMany;<br />
}
regards,
~Patrick
|
|
|
|
|
IIRC, map<>::operator [] cannot be used on a const map, since its used both for inserting and returning elements. It also returns a refrence to the value.
Maybe this will suffice?
std::string GetMinVal(const std::string& key) const
{
map<std::string, std::string>::const_iterator it = mMinVal.find(key);
if (it == mMinVal.end())
return (*it).second;
else
return "unknown key";
}
---
“Our solar system is Jupiter and a bunch of junk” - Charley Lineweaver 2002
|
|
|
|
|
if (it != mMinVal.end())
sorry!
---
“Our solar system is Jupiter and a bunch of junk” - Charley Lineweaver 2002
|
|
|
|
|
No worries, I saw that.
Thanks for the response. I totally missed that subscripting can modify that map, making it a non-const operation by definition. Ooops. Love it when the compiler doesn't let me blow my hand off.
thanks!
~Patrick
Code On!
|
|
|
|
|
Hi,
How to know whether or not "Internet Connection Firewall" is enabled or disbaled for any Network connection (In Windows XP & 2K). If anybody have sample code, please send it to me.
Thanks,
-Koti
|
|
|
|
|
Howdy my friends!
We have been developing Pocket PC solution for SAP R/3. But, we faced a problem with web service on .NET 2003. When I try to invoke method from VB.NET, return values don't set. Always "nothing". But, I can see the response SOAP message from SAP R/3 by MS SOAP Trace tool.
My sample code as below;
' Set RFC parameters<br />
Dim strPrm1 As String<br />
<br />
' Set URL<br />
Dim sURL As String<br />
sURL = "http://ybpent:8000/sap/bc/soap/rfc?sap-client=274"<br />
<br />
' Set credentials<br />
Dim m_Credentials As ICredentials<br />
m_Credentials = New NetworkCredential("xxxxx", "xxxxx")<br />
<br />
' Set web service<br />
Dim m_RfcGetTrustedSystemId As New dNETSOAP4SAPR3.RfcGetTrustedSystemId.RFC_GET_TRUSTED_SYSTEM_IDService<br />
m_RfcGetTrustedSystemId.Url = sURL<br />
m_RfcGetTrustedSystemId.Credentials = m_Credentials<br />
m_RfcGetTrustedSystemId.Timeout = -1<br />
<br />
' Call web service<br />
strPrm1 = m_RfcGetTrustedSystemId.RFC_GET_TRUSTED_SYSTEM_ID()<br />
m_RfcGetTrustedSystemId.Dispose()
Anybody has an idea about it?
Thanks.
Orkun GEDiK
|
|
|
|