16,016,501 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 Javascript questions
View Visual Basic 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 01.mandar (Top 47 by date)
01.mandar
22-Jun-12 10:10am
View
i have already passed NULL.
is there anything that increase win32 opengl execution which i may have missed out.
i am puzzled how have glut optimized their loop?
01.mandar
29-May-12 4:21am
View
it solved my problem of fullscreen but opengl 3d object get slow when lights are activated.I am finding a way by which i can run opengl code with high priority.
01.mandar
29-May-12 4:15am
View
I have created an user control application in C# containing a web browser and calling it from VC++ application(non MFC).
01.mandar
29-May-12 4:07am
View
Thanks SA. My 5 Too!!
01.mandar
5-May-12 3:37am
View
above solution worked i am able to create opengl window and keep code in library.
application is working wonderfully.
(note: if anyone is trying to do same, i want to tell them it can be done but i have not used SL yet but i will try to do it and post whatever happens)
01.mandar
29-Apr-12 10:05am
View
thank enhzflep i have use different method but i dont know how much better performance it would give
what i am doing in my win32 application is creating a window and its wndproc i am catching events and performing relevant function from dll
..
..
WM_PAINT:
OnPaintFromDll();
...
..
i feel that my solution is not efficient..
searching for better solution :)
01.mandar
26-Apr-12 7:30am
View
hi
i have opengl win32 code.
i modified the above code to make dll and the main function(hinst,hprevinst,NULL,NULL) to
newcallToMain(hinst,NULL,NULL,NULL)
which i pass handle of loadlibrary
now it shows 2 windows
1. my Application MDI window(which one i want to embed with)
2. its own (as i am calling complete main code)
the problem is
i can create a window in my application and pass handle to new main but while registering i have given different wnd proc how can i change that;
01.mandar
26-Apr-12 7:18am
View
Thanks John, actually to overcome this problem now i assigned an ID to every window i have created, these id helped me in manage there size events.
i would surely move to MFC :)
01.mandar
9-Jan-12 2:11am
View
Thanks It worked :)
01.mandar
30-Dec-11 4:22am
View
i had created a application some what like
namespace TestApp
{
public partial class MainWindow
{
A ob = new A();
B ob2 = new B();
}
public class A
{}
public class B
{}
public class Exchange
{}
}
every thing was running fine..
now suddenly i have to add some functionality in Exchange class like access some UI element(which even was working fine) but it starting to become hectic to manage many elements and data structure as the dependency started to grow on main class
is it a better approach like
___placing all classes in main class
namespace
{
public partial class MainWindow
{
A ob = new A();
B ob2 = new B();
public class A
{}
public class B
{}
public class Exchange
{}
}
}
or make distribute class operation into small function
namespace
{
public partial class MainWindow
{
//// all share variables
void fun_A
{}
void fun_B
{}
void Exchange_fun1()
{}
void Exchange_fun2()
{}
}
}
which approach will be better ?
.
01.mandar
15-Nov-11 8:24am
View
Perfect
even tried with
extern "C" TESTDLL_API char* __stdcall init_set1(char*);
and it worked too
a new project with above code worked fine thanks , i still don't know what i was missing.
is it that in dll code the last line should have newline in it
01.mandar
15-Nov-11 3:16am
View
tried compiling with Gz option but still giving decorated name
01.mandar
15-Nov-11 3:14am
View
Deleted
tried compiling with Gz option
01.mandar
15-Nov-11 2:18am
View
well when i checked in dependency walker
i dont know but some function are still exported as c++
E
C | extern "C" MYDLL_API char * Reader();
C | extern "C" MTDLL_API int init();
C++| extern "C" MTDLL_API int init_set(char*);
C++| extern "C" MTDLL_API int init_base();
if decorated option is checked
E
C | Reader;
C | init
C++| ??init_set@@YAPADD@Z
C++| ??init_base@@YAHXZ
i cant figure out why this function are still decorated when i used extern c
01.mandar
15-Nov-11 1:59am
View
#ifdef MYDLL_EXPORTS
#define MYDLL_API __declspec(dllexport)
#else
#define MYDLL_API __declspec(dllimport)
#endif
extern "C" MYDLL_API char * Reader(); (i need to figure out this too)
extern "C" MTDLL_API int init();
extern "C" MTDLL_API int init_set(char*);
extern "C" MTDLL_API int init_base();
01.mandar
15-Nov-11 1:56am
View
i have tried the code above and some more possibilities
http://msdn.microsoft.com/en-us/magazine/cc164193.aspx#S2
but still have error "An unhandled exception of type 'System.EntryPointNotFoundException' occurred in usedll.exe
Additional information: Unable to find an entry point named 'init_set' in DLL 'MYDLL.dll'."
==================================================
Function Name : int __cdecl inti_set(char *)
Address : 0x10026708
Relative Address : 0x00026708
Ordinal : 1 (0x1)
Filename : MYDLL.dll
Full Path : D:\GSM\usedll\bin\Debug\MYDLL.dll
Type : Exported Function
==================================================
==================================================
Function Name : int __cdecl inti_base(void)
Address : 0x1002609b
Relative Address : 0x0002609b
Ordinal : 2 (0x2)
Filename : MYDLL.dll
Full Path : D:\GSM\usedll\bin\Debug\MYDLL.dll
Type : Exported Function
==================================================
==================================================
Function Name : Reader
Address : 0x10026307
Relative Address : 0x00026307
Ordinal : 3 (0x3)
Filename : MYDLL.dll
Full Path : D:\GSM\usedll\bin\Debug\MYDLL.dll
Type : Exported Function
==================================================
==================================================
Function Name : init
Address : 0x1002704a
Relative Address : 0x0002704a
Ordinal : 4 (0x4)
Filename : MYDLL.dll
Full Path : D:\GSM\usedll\bin\Debug\MYDLL.dll
Type : Exported Function
==================================================
#ifdef MYDLL_EXPORTS
#define MYDLL_API __declspec(dllexport)
#else
#define MYDLL_API __declspec(dllimport)
#endif
extern "C" MYDLL_API char * Reader(); (i need to figure out this too)
extern "C" MTDLL_API int init();
extern "C" MTDLL_API int init_set(char*);
extern "C" MTDLL_API int init_base();
01.mandar
14-Nov-11 8:23am
View
int init_set(char* id)
{
char fire[100]={0};
strcat(fire,"AT+AIPO=");
strcat(fire,id);
// some more strcat parameters
if(sp_writer(fire))
return 0;
else
return 1;
}
01.mandar
12-Nov-11 2:05am
View
Thanks all of you
when i did GetCommState() DCB was populated with garbage values
baudrate as 1200 and binary to TRUE rest all was set to 0
i dont know why it is necessary to do GetCommState() before SetCommState() why cant we directly set values.
if some one pulled serial cable when the code is running GetLastError() is 995.
how can i close all handles safely because i have done same application in c#.net and it gives "Safe handle has been closed" and crashed
01.mandar
11-Nov-11 10:10am
View
hi
it fails at SetCommState(htoCOM, &dcb_ob)
i tried different combination in dcb_ob setting but it still fails
i have hardcoded DCB struct size because in some forum they have said problem is because of 64bit machine so they suggested me to give value in multiples of 8
01.mandar
10-Nov-11 3:55am
View
on ReadTimeout i wait for some time and recheck for any data on port on Bluetooth.
problem occurs when the code is running and Bluetooth serial dongle is removed
event occurs is "the device does not recognize the command"
so i need to close the thread which reads data on serial port and restart thread after some time.
01.mandar
1-Nov-11 3:43am
View
may be http://msdn.microsoft.com/en-us/library/ff728835.aspx
01.mandar
1-Nov-11 3:26am
View
thanks :)
plug and play documents helped me in solving COM port detection.
i am using WM_DEVICECHANGE to detect hardware
after that i want to check if it is the same bluetooth device which i want to install (i dont know how it can be done though)
may be i need to enter device information in registry during install process
i have written a code which does Bluetooth communication (works correctly if device is install)
need some pointers to know the process of installing a device manually....
01.mandar
19-Oct-11 2:33am
View
Comment moved to original question.
01.mandar
18-Oct-11 9:42am
View
oh! that was a typing mistake it was LpValueElement1 in place of LpValueElement2 :)
01.mandar
18-Oct-11 8:27am
View
how can we detect heap corruption..? (possible due to malloc ,tried to free() but didn't worked)
what points i have to consider
01.mandar
18-Oct-11 8:27am
View
how can we detect heap corruption..? (possible due to malloc ,tried to free() but didn't worked)
what points i have to consider
01.mandar
18-Oct-11 8:23am
View
RegEnumKeyEx, RegQueryInfoKey worked for me Thanks
01.mandar
18-Oct-11 8:22am
View
second link was helpful
01.mandar
28-Jul-11 6:11am
View
Deleted
hii want to send data from a server to a device but device is in different network's subnet (both are able to connect to internet)
Windows OS[10.20.30.40] --> -->> INTERNET -->>--> [13.14.15.16]ROUTER [192.168.1.1] --> Mobile-WIFI[192.168.1.5]
is there any way by which Windows can send data to Android device i mean can we pass the router NAT so that i could easily access mobile device some what like
Socket soc= new Socket("13.14.15.16/192.168.1.5",8080);
Windows OS[10.20.30.40] --> -->> INTERNET -->>--> [Hiding complexity] --> Mobile-WIFI [13.14.15.16/192.168.1.5]
it works fine when
Windows[192.168.1.5] -->--> Mobile-WIFI [192.168.1.9]
i have opened client server threads in both application( Windows server, mobile device) and have used TCP Sockets.
"bypass the router" oops :) sorry for misleading
01.mandar
28-Jul-11 3:03am
View
actually it works fine when server and client are in local network.
problem begins when the client is in local network and server is on different network connected to internet.
i just want to bypass router to communicate tcp port on remote device
01.mandar
1-Jun-11 9:50am
View
thanks graham that worked !!
i am trying to load dll using JSctypes i hope it should not create any problem..
anyways thanks you saved lot of work.. :)
01.mandar
29-May-11 23:50pm
View
thanks graham
my .exe and .dll(_stdcall) has same working code for serial port communication
i had created deployment setup from Visual Studio 2010 itself.
i tried coping 3 required dll file in setup
advapi32.dll, Kernel32.dll, msvcr90d.dll and my exe application as shown by dependency walker tree.
i have installed Platform SDK for win XP and WIN 7 both
i want to make it for winXP (my dll has lib function from WinXP Platform)
can i link statically all the dependent modules at compile time itself?
01.mandar
13-May-11 11:31am
View
:) Yes it was first but was solved luckily
01.mandar
13-May-11 11:03am
View
\x1A is crtl+z which was given in the documentation. previously i was following general manual i thought it was same for all device.
i added ...\r\n\n" extra \n at the mobile number string and it worked :)
Thanks for the support Olivier Levre :)
01.mandar
13-May-11 10:25am
View
i have attached \x1A at the end of the message and have transmitted to port it does not work,But NOW when i open hyper terminal and type AT and press enter it gives me > to write message and press crtl+z so it sends but the message is same which i have wrote in code and not on >....
is \x1A correct taken by port how can i find it?
thanks again
01.mandar
13-May-11 3:10am
View
Thanks the code worked flawless on changing USB-Serial cable with above changes.
Thanks Olivier Levrey and Stephen Wiria
01.mandar
13-May-11 3:10am
View
Thanks the code worked flawless on changing USB-Serial cable with above changes.
Thanks Olivier Levrey and Stephen Wiria
01.mandar
11-May-11 10:21am
View
ReadFile() gives output ATTTTTTTTT if done in loop
Device is not taking Values in the file for processing, is any problem in my device
Am i giving Correct values to WriteFile()?
01.mandar
11-May-11 10:15am
View
hi
i have put the delay after transmission same as you said and kept readFile in loop for 10 times
it gives me ATTTTTTTTT
01.mandar
11-May-11 10:11am
View
i have added a sleep after transmission
Sleep(15000);
but same result getting AT as output after adding delay
01.mandar
11-May-11 9:30am
View
oh thanks,
the above code is for transmission of AT command from my code to GSMDevice. it transmits but when ReadFile() is executed it gets the same command as i have given in writeFile() My device is not executing the AT commands.
i have tried different DCB and timeouts configuration but same condition.
01.mandar
22-Apr-11 3:33am
View
Deleted
what should we use to convert to LPCWSTR
01.mandar
5-Apr-11 8:07am
View
i have placed my dll in same folder as above (even tried with sys folders)
i don't know how to register dll on new machine (is it REGSVR kinda..)
01.mandar
5-Apr-11 8:04am
View
it runs on my machine without any error.
i have also made the folder RW form root of C:
i am running windows 7 with minimal security now when i port my code to second machine ie.windows XP which doesn't have security as compared to win 7 so i think security may not be causing any problem.
browser part :
i have reduced security in IE too.. (may be i need to change more option in IE which i don't know ) :)
01.mandar
24-Mar-11 9:08am
View
i have seen some pdf sdk but they are mostly in .NET or for trial/demo basis
i will continue looking more for c++ or java
01.mandar
24-Mar-11 9:02am
View
i have seen 2 library
zlib in c++
Pdfbox in java
coding for both mostly work on unencrypted pdf
my difficult is the pdf encryption
it just creates blank txt file when encrypted pdf is passed
01.mandar
24-Mar-11 8:53am
View
user inputs are pdf path ,password ,txt file
i need to decrypt pdf by user password
how to decrypt stream ?
will inflate() versions be useful
is above possible to do in zilb?
Show More