|
I have just checked my printer and the pPortName contains IP_200.128.1.115. I then added another printer and port from control panel and specified the name of the port as 'A Test Port'. Then running the enumeration I got the original port ( IP_200.128.1.115 ) and the new one ( A Test Port ) returned as the pPortName.
Thanks EnumPorts does return the pMonitorName in the PORT_INFO_2 structure so now I have got half an answer.
Doing some more searching it looks as if I need to use 'TCPMON Xcv Commands' which seems to be sort of documented in the DDK.
|
|
|
|
|
The portname returned on our network for 'standard tcp/ip' always starts with IP_, so if this is returned strip of the IP_ and the rest is your IP address.
Hope this helps.
|
|
|
|
|
Yes, this is the default however the user can edit the name to be any string
|
|
|
|
|
Hello All!
I want use function "SymSrvGetFileIndexes" in my project,
but it requires DbgHelp.dll version 6.3
I obtain DbgHelp.dll 6.3, by installing Debugging Tools for Windows.
But where can I get DbgHelp.lib and DbgHelp.h ????
help me please...
|
|
|
|
|
http://www.debuginfo.com/examples/dbghelpexamples.html[^]
1. Find the latest versions of DbgHelp.dll, DbgHelp.h and DbgHelp.lib files.
The latest versions of these files are always available with Debugging Tools for Windows[^] package. Download and install Debugging Tools for Windows (when installing, choose custom installation and install SDK).
2. Configure Visual Studio to find DbgHelp.h and DbgHelp.lib files.
These files are supplied with Visual Studio and Platform SDK, but it is necessary to use the latest files – the files that come with Debugging Tools for Windows. Thus it is necessary to configure Visual Studio include and library directories so that the latest files will be found first.
Use the following directories:
Include -> %DebuggingTools%\sdk\inc
Library -> %DebuggingTools%\sdk\lib\i386
--EricDV Sig---------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters
|
|
|
|
|
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
|
|
|
|