|
Thanks!
But now when I call function
SymbolServer("srv*D:\websymbols*", "ntoskrnl.pdb", &Id, Val1, Val2, path);
error C3861: 'SymbolServer': identifier not found, even with argument-dependent lookup
How to call SymbolServer???
in SDK it is described as:
<br />
The SymbolServer function is an entry point to the symbol server DLL.<br />
It is used to locate a symbol file.<br />
The PSYMBOLSERVERPROC type defines a pointer to this callback function.<br />
SymbolServer is a placeholder for the library-defined function name.<br />
<br />
BOOL CALLBACK SymbolServer(<br />
LPCSTR params,<br />
LPCSTR filename,<br />
PVOID id,<br />
DWORD two,<br />
DWORD three,<br />
LPSTR path<br />
);<br />
What I do wrong?
|
|
|
|
|
trying to create Bitmap object
Bitmap *backBitmap;
backBitmap=new Bitmap(GetSystemMetrics(SM_CXSCREEN),GetSystemMetrics(SM_CYSCREEN));//error C2660: 'Gdiplus::GdiplusBase::operator new' : function does not take 3 arguments
|
|
|
|
|
|
hi dear
i dont know how to use bitmap
can u tell me or send me code or example how to use bitmap in an application
Ashish Dogra
MCA
Noida
|
|
|
|
|
You can use
CBitmap or CImage or LoadImage or OleLoadPicture or
Graphics::DrawImage(...) Image::FromFile() or (i think example) CXImage in the codeproject
and...
whitesky
|
|
|
|
|
WhiteSky wrote: CXImage in the codeproject
Hi Sky!,
IMHO CXimage is very bulky class for Beginner!, .. anyway how are you?
"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
|
|
|
|
|
Hi Alok Gupta,
not abd.How are you?
Did you have a good week(and I hope that you have a good weekends)?
I think you are busy not problem work is good.
whitesky
|
|
|
|
|
WhiteSky wrote: I think you are busy not problem work is good.
I know
"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
|
|
|
|
|
ashish dogra wrote: hi dear
i dont know how to use bitmap
can u tell me or send me code or example how to use bitmap in an application
try this link :- http://codeproject.com/bitmap/[^]
"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
|
|
|
|
|
Which Bitmap constructor are you attempting to use?
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
the problem was solved.
reason was that MFC DEBUG_NEW Does Not Work with GDI+
|
|
|
|
|
I have 2 views, both of them displaying some data, which is not comming from DOCUMENT class.
How do I display the content of both the VIEW's in Print-Preview...
Please Help
Rahul
|
|
|
|
|
void CConnect::OnGroupTrend()
{
CConfigurator oConfig("Configurator");
CGraphviewConfig oGrphconf;
CGrpTrnConf oGrpConfig;
oConfig.AddPage(&oGrphconf);
oConfig.AddPage(&oGrpConfig);
oConfig.DoModal();
}
This is my PropertySheet function.The two dialogs are derived from PropertyPage.(i.e) i replaced CDialog in the code in to CPropertyPage.
Configurator class is derived from CPropertySheet.
Assertion error occurs in DoModal() line.I dont why yhe error occurs.
|
|
|
|
|
This assert is a hint that there is something frong in your construction code.
Check the replaced CDialog code, maybe there havent you changed all.
Try it with 1 page and step in the code, the error details are important what the MS-Code didnt like.
Greeting from Germany
|
|
|
|
|
What line of what file asserts?
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi all,
I've got a file containing many lines made up by a string followed by numbers like this:
string1 double1 double2 double3
string2 double4 double5 double6
...
I need to store the first column in a string vector,
something like CString[numberofstrings]
How can i do that ?
Thanx,
Desmo16.
|
|
|
|
|
|
I'm not going to write the code
do the following. (you should do the required error and out of boundary checking of array
1. Read fist line to a buffer.
2. use strtok function to get the tokens (in this case seperated by space)
3. add to the vector.
4. Do above till the EOF
SaRath.
"Where I am from, there is no plan B. So, take advantage of today becuase tomorrow is not promised. - 50 Cent"
<blink>My Blog | Understanding State Patte
|
|
|
|
|
The is a CStringArray class in the MFC.
Read The F. Msdn.
Greeting from Germany
|
|
|
|
|
Try something like this (not tested):
-------------------------------------
#include <fstream>
#include <vector>
#include <string>
#include <sstream>
#include <iostream>
#include <algorithm>
#include <iterator>
int main(int argc, char *argv[])
{
using namespace std;
// Open the file.
ifstream ifs("C:\\a.txt");
if (!ifs)
{
return 1;
}
// A collection of strings.
typedef vector<string> strings_t;
strings_t StringColl;
// Read in the file line at a time.
string line;
while (getline(ifs, line))
{
// Get the first string in the line.
string FirstString;
istringstream iss(line);
if ( !(iss>>FirstString) )
{
break;
}
// Add it to the collection.
StringColl.push_back(FirstString);
}
// Output the strings in the collection to the console.
copy(StringColl.begin(), StringColl.end(), ostream_iterator<string>(cout, "\n"));
return 0;
}
Steve
|
|
|
|
|
Desmo16 wrote: I've got a file containing many lines made up by a string followed by numbers like this:
vector<CString> vecString;
let szTmp of type Char* contain your First line of File...
then this small code will read all the string in the Vector string;
TCHAR *sztoken=strtok(szTmp," ");
int iCount=0;
while(sztoken!=NULL)
{
vecString.push_back(sztoken);
sztoken = strtok( NULL, " ");
}
"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
|
|
|
|
|
I'll never understand why people insist on still using old CRT functions such as strcmp and strtok and worst of all printf . Naturally there are exceptions to every rule, but in general the world if better of without these APIs.
Steve
|
|
|
|
|
Stephen Hewitt wrote: 'll never understand why people insist on still using old CRT functions such as strcmp and strtok
People Don't want to forget there old c/c++ skills that why , anyway there is also a function called CString ::Tokenize().. which is replacing StrTok api quietly!
"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
|
|
|
|
|
I don't think people should forget; just enhance.
Steve
|
|
|
|
|
mine is an SDI application n I have got two views .one is displayed on print preview n i need to print the other view at the end in a new page of the same print preview
RVS
|
|
|
|