|
yeah thanx for knocking my head.
|
|
|
|
|
Good morning.
If you look at the original makefile, they define UNICODE in two ways. See this:
-DUNICODE -D_UNICODE
So I think you will have to define both UNICODE and _UNICODE
Kakan
|
|
|
|
|
Hell all,
I have a Visual C++.NET programme and would like it posted on my website built using ASP.NET(C#, CSS and Javascript).
I've done a few projects of Web-based Application(Web service) using ATL Server based on the textooks, but they are rather simple and dumb.(no offense, just not practical.)
This application is not connected to a database, it gets data from an simulator of random number generator(.dll).It's Arbitrage Automatic Trading system based on Financial derivative volatility...feels dizzy, huh? me too. It took me only a month to build, but take me forever to make it as good as I want.
Any comments or suggestions are welcomed.
thanks
|
|
|
|
|
Hi all!
Now I have a source of OpenVPN but I can't Open the Project under VS6.
Pls, can you show me the way to open it.
Many thanks.
|
|
|
|
|
I was wondering if anyone out there has experience with MAPI -- and how it related to a local message store vs. using an exchange server.
The MAPI API is universal for these, but I am seeing crashes when using MAPI with Exchange (vs not).
Are there any special considerations for connections to an Exchange server? Or any specials calls one should make when connecting to an exchange server?
Thanks
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.soonr.com">SoonR Inc.</A>
|
|
|
|
|
Hi
I want to register the ocx control
What is the command to register the control in window xp
-- modified at 1:06 Thursday 8th December, 2005
|
|
|
|
|
Couldn't you use regsvr32.exe for the job?
In the command prompt, or in the Windows start-run menu:
regsvr32 myctrl.ocx
this is this.
|
|
|
|
|
How can I remove this error?
I am creating a PictureBox and in that I am displaying an Image dynamically.
For Displaying the Image I have written a statement like:
"System::Windows::Forms::Control::Controls->Add(PictBox);
and gives the following error....
Error: left of'->Add' must point to class/struct/union
So, How can I solve it?
Thank you
-Janak
-- modified at 1:14 Thursday 8th December, 2005
|
|
|
|
|
Make it some more clear..
Have u checked for type casting for the b4 functions..
|
|
|
|
|
Hi..
I am passing a string(format should be in YYYY-MM-DDThh:mm:ss ) to a function where i should validate that the entered string is in the above format..
The 'T' should be in between the date & time..
i.e when i enter in the above format in edit box & press the 'ok' button,i should be able to specify whether the entered format is in the specified above format..
How can i do this????Plz Help!!!
|
|
|
|
|
You want to check the format of dateString[] is YYYY-MM-DDThh:mm:ss?
As far as I remember, Visual Basic has isDate and isTime macros, but I don't think C has these! This leaves the brute force approach - check each component of the time individually, something like shown below.
BOOL bErrorFound = FALSE;<br />
if (dateString[4] != '-' || dateString[7] != '-' ||<br />
dateString[10] != 'T' || dateString[13] != ':' ||<br />
dateString[16] != ':' || strlen(dateString) != 20)<br />
bErrorFound = TRUE;<br />
else<br />
{<br />
}<br />
<br />
if (bErrorFound)<br />
giveMessage("bad Format String");<br />
else<br />
giveMessage("nice String");
|
|
|
|
|
I want to detect the system whether install a keyboard hook, how can i know?
Thanks in advance for your help
I love you not for whom you are, but who i am when I'm by your side
|
|
|
|
|
Hello everyone
Traditionally, unidymensional arrays are declared by providing the size of the array with a constant number as argument (e.g. myarray[size] where size is usually a const int ). I'm working building a model that needs arrays with one value per year (e.g. 6789 in 1989, 3992 in 1990 and so forth). In other words, I need to access values in the array when I have the year of interest as the index to identify the elements of the array. How can I declare the array as myarray(firstyear,lastyear) so I can access its elements the way I need and both firstyear and lastyear are read from a file?
Thanks
C.
|
|
|
|
|
Can u explain with some detail example
i cant get it
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
Hi
Consider an array that could be indexed as:
int firstyear = 1980; <br />
int lastyear = 1985; <br />
<br />
<br />
int myarray(fistyear,lastyear)<br />
<br />
<br />
myarray[1981] = 6789;<br />
myarray[1983] = 3482;
// or work with a loop such as
for(int i = firstyear; i <= lastyear; i++)<br />
{<br />
myarray[i];<br />
}
This contrasts with the usual:
const int size = 6;<br />
int myarray[6];<br />
myarray[1] = 6789;<br />
myarray[3] = 3842;<br />
<br />
<br />
for(int i = 0; i < size; i++)<br />
{<br />
myarray[i];<br />
}<br />
Hope this makes it clearer.
Thanks for your help
C.
|
|
|
|
|
You could just do it like:
int i;<br />
for (i = 1980; i < 1985; i++)<br />
{<br />
array[i-1980] = 6370;
}
Just subtract the firstyear from the index, and you are there.
i = 1981;<br />
array[i-1980] = 200;
i = 1985;<br />
array[i-1980] = 220;
this is this.
|
|
|
|
|
Thank you, this certainly allows me to do what I need... although I was expecting a new way to declare the array instead of a clever way to work with what we already have... but hey, it works for me!
Cheers
|
|
|
|
|
I thing you can use map to implement your function!
have a lucky day.
|
|
|
|
|
Thanks for your suggestion. I was trying to avoid using containers. However, Mr. khan++ gave me an idea that solves my problem.
Cheers
|
|
|
|
|
Have you ever considered using the STL? And STL map would do it:
<br />
std::map<int,int> myArray;<br />
<br />
myArray[1981] = 6789;<br />
myArray[1983] = 3482;<br />
<br />
for ( std::map<int,int>::iterator iter = myArray.begin(); iter != myArray.end(); ++iter )<br />
{<br />
int key = (*iter).first;<br />
int value = (*iter).second;<br />
<br />
printf( "myArray[%d] = %d\n"), key, value );<br />
} <br />
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.soonr.com">SoonR Inc.</A>
-- modified at 3:36 Thursday 8th December, 2005
|
|
|
|
|
I meant to say:
myarray[size]
|
|
|
|
|
as i understand it, you have several arrays, one per year, and want to find them by the year number ; for this, the standard library implements the std::map<> class.
as I imagine, the arrays may not have the same size each, so you could be using such a map :
std::map< int, std::vector< int > > mapYearWithVector;
is this true ?
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20] | soon : [VisualCalc 3.0]
|
|
|
|
|
I'm sure that this cannot be done using conventional arrays.
The way I would do it would be to use a linked list. That way, the years could be in any order, and years could be missed out if required.
class node
{
private :
int year;
int value;
node * pointToPrevious;
public :
node()
{
}
node(int y, int v, node * p)
{
year = y;
value = v;
pointToPrevious = p;
}
};
For fuller notes on linked lists as I teach it, please email me : simon.cornish@tesco.net
Regards
Simon
|
|
|
|
|
In my application i get body(IHTMLElement) and try to reset onclick event like javascript:alert('ok');
There is little document of IHTMLElement->put_onclick(VARIANT) from MSDN, but the line
CComPtr<ihtmlelement> pBodyElement;
//other codes
pBodyElement->put_onclicke(VARIANT("javascript:alert('ok');"));
doesnot work.
Would you please show me why,or show me some samples?
thanks advance.
|
|
|
|
|
Hi,
I am using CRecordset to retrieve data from SQL server but i found there is a performance issue with retrieving 173 rows of data from the data. I then narrow it down to MoveNext() causes the performance to be slow. Can someone please help?
Here is the code, simple but slow in performance.
CString sSql;
CRecordset rs(&gGlobalLHdb);
sSql = "SELECT * FROM metrics";
if (!sSql.IsEmpty())
{
rs.Open(CRecordset::forwardOnly, _T(sSql));
while(!rs.IsEOF())
{
// metric_name
CString s1;
s1 = "metrics_name";
CString sRetVal1;
rs.GetFieldValue(s1,sRetVal1);
rs.MoveNext();
}
rs.Close();
thank you so much,
Sue
|
|
|
|