|
How is your line specified at the moment? How you draw the next line will depend on that.
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"
|
|
|
|
|
If you want to draw your line parallel to an existing line, you should store the points of that other line. You can use the suggestions provided by the others for drawing, they work perfect!
good luck!
A student knows little about a lot.
A professor knows a lot about little.
I know everything about nothing.
|
|
|
|
|
Thank you all for your support. I really need a routine which will work with polylines, handling the joints as well.
Best regards,
Paul.
Jesus Christ is LOVE! Please tell somebody.
|
|
|
|
|
I don't think that such a routine exists, but feel free to write it yourself
If it takes too long to get what you want, do it yourself
A student knows little about a lot.
A professor knows a lot about little.
I know everything about nothing.
|
|
|
|
|
Right, I am working on it - just have to handle the joints well to complete it.
Best regards,
Paul.
Jesus Christ is LOVE! Please tell somebody.
|
|
|
|
|
Hello,
1) how can I get the local domain name (normally something like WORKGROUP)? The method should work on both NT-systems and 9x.
2) how can I enumerate the network adapters? I've found only a method that uses Iphlpapi which I don't want to use.
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|
|
Dominik Reichl wrote:
2) how can I enumerate the network adapters? I've found only a method that uses Iphlpapi which I don't want to use.
I hope this is not the link that you are refering to [^]. You can also check GetAdaptersInfo but I am not sure how you can enumerate network adapters.
Dominik Reichl wrote:
1) how can I get the local domain name (normally something like WORKGROUP)? The method should work on both NT-systems and 9x.
I am not sure about this question but I hope GetComputerNameEx function can be of use.
// Afterall, I realized that even my comment lines have bugs
When one cannot invent, one must at least improve (in bed).-My latest fortune cookie
|
|
|
|
|
Toni78 wrote:
I hope this is not the link that you are refering to [^]. You can also check GetAdaptersInfo but I am not sure how you can enumerate network adapters.
Ehm... This is getting the MAC addresses for the adapters. But what I am looking for is an enumeration function for "Client for Microsoft Networks", "32-bit fast ethernet adapter", "Microsoft Virtual private networking adapter" and those...
GetAdaptersInfo is the function I don't want to use... It's a Iphlpapi function...
Toni78 wrote:
I am not sure about this question but I hope GetComputerNameEx function can be of use.
Theoretically GetComputerNameEx is the function I am looking for, but this function is supported only by Windows XP and Windows 2000 Professional. But I need it for 9x systems too
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|
|
Dominik Reichl wrote:
Theoretically GetComputerNameEx is the function I am looking for, but this function is supported only by Windows XP and Windows 2000 Professional. But I need it for 9x systems too
Other than GetComputerNameEx, there are no other functions (to my knowledge) that can get the domain name. GetComputerName gets the NetBios name and it works on all versions of windows. I know you're looking for the domain name, but would that function work for you?
// Afterall, I realized that even my comment lines have bugs
When one cannot invent, one must at least improve (in bed).-My latest fortune cookie
|
|
|
|
|
2) how can I enumerate the network adapters? I've found only a method that uses Iphlpapi which I don't want to use
Check for examples on GetAdaptersInfo.
I hope that helps.
Isaac Inyang
Ansyl Technologies
|
|
|
|
|
This is exactly what I didn't want to use. GetAdaptersInfo is a function of Iphlpapi...
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|
|
Dominik Reichl wrote:
how can I get the local domain name (normally something like WORKGROUP)? The method should work on both NT-systems and 9x.
NetWkstaUserGetInfo() will give you the information, but will only work with WinNT/2k/XP. Win9x systems have the same function, but it is a 16-bit function callable by 16-bit code only, exported from netapi.dll . You can only do it using 16-bit code, and using thunking to interoperate with 32-bit code. Yes, it's complex, and No, I don't know exactly how to do it, but's it's possible
This[^] article gives the information. The first call to NetWkstaGetInfo() will provide you with the domain name - look up the docs for NetWkstaGetInfo() to work out how to extract the information.
Hope this helps,
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"
|
|
|
|
|
Dominik Reichl wrote:
1) how can I get the local domain name (normally something like WORKGROUP)? The method should work on both NT-systems and 9x.
2) how can I enumerate the network adapters? I've found only a method that uses Iphlpapi which I don't want to use.
I know you can do #2, and I am guessing #1, using WBEM and WMI. WBEM is only included with Windows 2000 and XP, but I believe it can be installed on previous versions.
I'm a complete and utter newb when it comes to WMI/WBEM, but do some searches on them to see if it can do what you want. I think it's your best bet. I've done #2, but only on XP and using somebody else's wrapper class.
|
|
|
|
|
Hi
I want to write to screen: 'RéSUMé' . The characters 'é' in capital.
I made a CString strText("résumé");
strText.MakeUpper();
It makes all characters to upper expect for the 'é' ones.
I've looked up the character ascii code for 'é captital' and that is 201.
How can i put this character in the text?
Greetings
Jens
|
|
|
|
|
Why not hard-coding it when it isn't a dynamic string?
CString strText("RÉSUMÉ");
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|
|
ehehe thanks
|
|
|
|
|
#include "../disclaimers/standard/technical_ignorance.h"
I have a (mostly) peer-to-peer application that uses windows sockets to communicate with a server and also has it's own web server to serve up information to other peers.
This all works perfectly until users put themselves behind a firewall/router/etc.
As far as I understand (see disclaimer above), a user can use a SOCKS 4/5 proxy server to gain access to the outside world for this kind of application, but the P2P application needs to be SOCKS compliant.
- Is this true?If so, what do I need to do to make my application SOCKS compliant?
- Do I need to make any changes to the server application?
Your help, assistance and guidance would be gratefully received.
Derek Lakin.
Try the Code Store for instant integrated access to an online repository of .NET components.
The great thing about being a slayer: is kicking ass is comfort food. Buffy
Salamander Software Ltd.
|
|
|
|
|
Sorry, I can't really help much, but I had to give you a 5 just for your disclaimer
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"
|
|
|
|
|
Ryan Binns wrote:
Sorry, I can't really help much, but I had to give you a 5 just for your disclaimer
Thanks
Derek Lakin.
Try the Code Store for instant integrated access to an online repository of .NET components.
The great thing about being a slayer: is kicking ass is comfort food. Buffy
Salamander Software Ltd.
|
|
|
|
|
Im using mfc's hotkey control. I can get the key and modifier by doing this:
WORD v_Key;
WORD v_Modifiers;
m_Play.GetHotKey(v_Key, v_Modifiers);
Now how on earth do I put this information into a char* so I can save it in a file.
Then once thats done how do I convert the string back to the WORD? eg do is do this (assuming the value of v_Key is in charstring):
v_Key = (WORD) *charstring;
If someone could point me to a tutorial that would be great
|
|
|
|
|
Depends. If you need it in a readable way like "A" + Alt+Shift then it's not that easy.
If it doesn't have to be saved in a readable way, why not storing the 2 words as they are? Just save the 4 bytes raw to the file. Loading is easy: just read the 4 bytes and copy them back to the 2 words.
If it has to be an ASCII string then I would convert the words to their numerical strings (100 -> "100") and save that string (use function itoa ). To convert it back, use atoi .
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|
|
I programme using Visual C++ 7 on Windows XP but would like to develop code to run on a minimum of Windows 98. I am confused on what modifications (if any) to make to the stdafx.h file.
Below is the text from the define part of the file.
#ifndef WINVER
#define WINVER 0x0410
#endif
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0400
#endif
#ifndef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0410
#endif
#ifndef _WIN32_IE
#define _WIN32_IE 0x0400
#endif
Thank you
Isaac Inyang
Ansyl Technologies
|
|
|
|
|
I don't know what to tell you about your header file but,
you could actually do that by calling GetVersionEx to find the windows version your program is running on. If it's not the version that you like, then display a message and close the program.
However, my impression is that you want to do this because you want to make sure that a feature is present in the operating system. I read an article once about this and the only suggestions that I remember were to use LoadLibrary and then GetProcAddress to find out if certain functions are present. Also, you can use GetSystemMetrics for other features that you might be interested in. And finally you could use DllGetVersion. I am sure that there are other people that have more to add to this topic.
// Afterall, I realized that even my comment lines have bugs
When one cannot invent, one must at least improve (in bed).-My latest fortune cookie
|
|
|
|
|
Thanks a lot.
I just want to ensure that my programme would run successfully in Windows 98, Me, 2000 even though I develop the codes on a Windows XP Machine.
Looking forward to getting a reply from you.
Isaac Inyang
Ansyl Technologies
|
|
|
|
|
I am sorry. I thought you were asking about how to determine if your program is running on the correct windows version.
I really don't have an answer for your question. Usually when I use a function that is kind of new to me, I check the minimum OS requirements for it. Sorry, I can't help you.
// Afterall, I realized that even my comment lines have bugs
When one cannot invent, one must at least improve (in bed).-My latest fortune cookie
|
|
|
|