16,020,714 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Visual Basic questions
View Javascript questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by amityadav4a (Top 29 by date)
amityadav4a
14-Apr-13 19:40pm
View
Updated my question. I declared LatestFolder as a global variable in my program. still i am not getting correct result.
amityadav4a
10-Apr-12 9:22am
View
No it is not working
amityadav4a
9-Apr-12 17:32pm
View
Yes menu is not showing.
amityadav4a
9-Apr-12 17:05pm
View
Can you help me in Doing it in MDI. I have assignment on it as a college work. Have no other option than to use MDI.
Please check once and let me know what is wrong. I guess there is something wrong with Menu.
amityadav4a
9-Apr-12 12:30pm
View
It is global.
amityadav4a
8-Apr-12 5:46am
View
How to use InitCommonControlsEx()
and same code is working fine in windows 7.
amityadav4a
13-Mar-12 23:41pm
View
Ipv4.
'Just want that user should enter ip in the range 0.0.0.0 to 225.225.225.255 and not any character or special symbol or wrong ip
amityadav4a
13-Mar-12 15:41pm
View
Can you help me with c++ code use in win32.?
amityadav4a
13-Mar-12 15:39pm
View
i want it in c++. Have write code to accept ip address and ip mask and i want to validate it.
amityadav4a
13-Mar-12 10:57am
View
It worked after removing CBS_OWNERDRAWVARIABLE but have to change SendMessage((GetDlgItem(hAddRuleDlg,IDC_COMBO4)),CB_ADDSTRING,0,reinterpret_cast<lparam>(TEXT("amit"));
amityadav4a
13-Mar-12 10:46am
View
Not working any ways. What can i do now?
amityadav4a
11-Mar-12 3:57am
View
Like we see item in Task Manager on processes tab.
how to do this in dialog box and even on Parent window.
in win32
amityadav4a
11-Mar-12 3:44am
View
ok thanx. is ther any thing on win32 for firewall.
amityadav4a
9-Mar-12 7:43am
View
Ok thank you so much.
Can you tell me how to implement Filter-Hook Driver?
reply asap
amityadav4a
7-Mar-12 23:35pm
View
How to refill all the content of Dialog Box
amityadav4a
6-Mar-12 18:37pm
View
Yes it give initial values. How to call that function again to get initial value
amityadav4a
6-Mar-12 15:52pm
View
IDD_ADDRULEDLG DIALOGEX 0, 0, 308, 213
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Add a Rule"
FONT 8, "MS Sans Serif", 0, 0, 0x0
BEGIN
DEFPUSHBUTTON "Add",IDOK,87,179,50,14
PUSHBUTTON "Cancel",IDCANCEL,152,179,50,14
LTEXT "Action",IDC_STATIC,150,153,25,11
GROUPBOX "Source",IDC_STATIC,22,14,262,62
LTEXT "IP Address",IDC_STATIC,43,28,42,8
GROUPBOX "Destination",IDC_STATIC,23,80,262,62
LTEXT "IP Address",IDC_STATIC,44,95,42,10
LTEXT "(0.0.0.0 pfor all)",IDC_STATIC,35,104,50,8
LTEXT "IP Mask",IDC_STATIC,45,57,42,10
LTEXT "(0.0.0.0 for all)",IDC_STATIC,39,37,46,8
LTEXT "(0 for all)",IDC_STATIC,199,37,30,8
LTEXT "Port",IDC_STATIC,205,30,14,8
LTEXT "Port",IDC_STATIC,205,98,14,8
LTEXT "(0 for all)",IDC_STATIC,200,105,30,8
LTEXT "IP Mask",IDC_STATIC,46,122,42,10
LTEXT "Protocol",IDC_STATIC,42,153,27,8
COMBOBOX IDC_COMBO4,81,151,44,49,CBS_DROPDOWNLIST | CBS_OWNERDRAWVARIABLE | WS_VSCROLL | WS_TABSTOP
COMBOBOX IDC_COMBO3,182,151,70,51,CBS_DROPDOWNLIST | CBS_OWNERDRAWVARIABLE | CBS_SORT | WS_VSCROLL | WS_TABSTOP
EDITTEXT IDC_EDIT2,237,30,30,12,ES_RIGHT | ES_AUTOHSCROLL | ES_NUMBER
EDITTEXT IDC_EDIT1,95,30,69,12,ES_RIGHT | ES_AUTOHSCROLL
EDITTEXT IDC_EDIT6,95,55,69,12,ES_RIGHT | ES_AUTOHSCROLL
EDITTEXT IDC_EDIT3,95,97,69,12,ES_RIGHT | ES_AUTOHSCROLL
EDITTEXT IDC_EDIT5,95,121,69,12,ES_RIGHT | ES_AUTOHSCROLL
EDITTEXT IDC_EDIT4,237,97,30,12,ES_RIGHT | ES_AUTOHSCROLL | ES_NUMBER
END
This is my dialog box
amityadav4a
6-Mar-12 15:42pm
View
It will add same element in the dialog box
amityadav4a
6-Mar-12 12:44pm
View
what is this?
amityadav4a
5-Mar-12 12:07pm
View
No But same code is working fine in windows 7. It is not working on my pc windows xp.
amityadav4a
3-Mar-12 12:54pm
View
Yes everything looks fine. All the variables and build is successful.
amityadav4a
28-Feb-12 7:23am
View
Ya it is working now. Thanx to you for the help!
amityadav4a
28-Feb-12 7:04am
View
I edited code like this
TextOut(hdc,0,20,szBuffer1,iLength = wsprintf(szBuffer1, TEXT("IP Address : %hs "), inet_ntoa(inAddr)));
used %hs and inet_ntoa function to get result in desired format.
Thank you!
amityadav4a
28-Feb-12 7:02am
View
thank you so much..
It worked
amityadav4a
28-Feb-12 6:48am
View
i want to print ip address and ip mask in 255.255.255.0 format. How to print it?
using this for the code
TextOut(hdc,0,20,szBuffer1,iLength = wsprintf(szBuffer1, TEXT("IP Address : %i "), pIPAddrTable->table[0].dwAddr));
amityadav4a
28-Feb-12 6:39am
View
You are absolutely correct my address is what you specified.
TextOut(hdc,0,20,szBuffer1,iLength = wsprintf(szBuffer1, TEXT("IP Address : %X "), pIPAddrTable->table[0].dwAddr));
Now after Replacing %i with 5X i am getting this value
IP Address: 620C4B74
what specifier should i use to get ip in this format 204.221.238.255
Please Reply asap!
amityadav4a
28-Feb-12 6:28am
View
if( (dwRetVal = GetIpAddrTable( pIPAddrTable, &dwSize, 0 )) == NO_ERROR )
{
TextOut(hdc,0,140,szBuffer,iLength = wsprintf(szBuffer, TEXT("no error %d"),dwRetVal));
if(pIPAddrTable->dwNumEntries>0)
{
for(DWORD i=0;i<=pIPAddrTable->dwNumEntries;i++)
{
memmove (&inAddr, &(pIPAddrTable->table[i].dwAddr), 4);
TextOut(hdc,0,20,szBuffer1,iLength = wsprintf(szBuffer1, TEXT("IP Address : %s "), inet_ntoa(inAddr)));
TextOut(hdc,0,40,szBuffer2,iLength = wsprintf(szBuffer2, TEXT("IP Mask : %i "), pIPAddrTable->table[i].dwMask));
TextOut(hdc,0,60,szBuffer3,iLength = wsprintf(szBuffer3, TEXT("IP Index : %i "), pIPAddrTable->table[i].dwIndex));
TextOut(hdc,0,80,szBuffer4,iLength = wsprintf(szBuffer4, TEXT("Broadcast Addr : %i "), pIPAddrTable->table[i].dwBCastAddr));
TextOut(hdc,0,100,szBuffer5,iLength = wsprintf(szBuffer5, TEXT("Re-assembly size : %i "), pIPAddrTable->table[i].dwReasmSize));
}
}
}
Using this loop i am getting values as
IP Address: ||||||||||||
IP Mask: -842150451
IP Index: -842150451
Broadcase Adr: -842150451
Re-assembly size: -842150451
amityadav4a
28-Feb-12 6:10am
View
I am getting output like this on my pc. Using Visual studio 2008
this is what i am using to print on window
TextOut(hdc,0,20,szBuffer1,iLength = wsprintf(szBuffer1, TEXT("IP Address : %s "), inet_ntoa(inAddr)));
IP Address: ||||||||||||||
IP Mask: 1579415
IP Index: 2
Broadcase Adr: 1
Re-assembly size: 65535
But if i use this i am getting this value
IP Address: 1644972916
IP Mask: 1579415
IP Index: 2
Broadcase Adr: 1
Re-assembly size: 65535
Reply asap
Thank you in advance
amityadav4a
27-Feb-12 16:27pm
View
I am getting this error "
1>------ Build started: Project: iptrace, Configuration: Debug Win32 ------
1>Compiling...
1>iptrace.cpp
1>.\iptrace.cpp(67) : warning C4101: 'i' : unreferenced local variable
1>Linking...
1>iptrace.obj : error LNK2019: unresolved external symbol _GetIpAddrTable@12 referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z)
1>C:\Documents and Settings\Amit\My Documents\Visual Studio 2008\Projects\iptrace\Debug\iptrace.exe : fatal error LNK1120: 1 unresolved externals
1>Build log was saved at "file://c:\Documents and Settings\Amit\My Documents\Visual Studio 2008\Projects\iptrace\iptrace\Debug\BuildLog.htm"
1>iptrace - 2 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I am getting this error. i have posted error in the last
Show More