15,891,136 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 Python 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 manoranjan (Top 22 by date)
manoranjan
31-Oct-16 4:48am
View
Please share the updated code and the new output.
manoranjan
14-Mar-16 3:37am
View
This is not the right answer. main() function returns int (and not void). See Solution 2.
manoranjan
18-Apr-14 16:30pm
View
You don't export Ka or Kb. Ka = Kb. As A, you will use Ka at your end to encrypt dsta to send it to B. B decrypts it using Kb. However, you have to export Ya and send it to B.
Do you want to know how you can use shared key (hSession in your ImportKey function) for encrypting data or create MAC?
manoranjan
22-Aug-13 9:35am
View
you are welcome!
manoranjan
22-Aug-13 2:58am
View
Use gcnew to instantiate your C# class in your C++ app and then use it.
E.g.:
MyCsClass ^cso = gcnew MyCsClass;
cso->f1();
manoranjan
22-Aug-13 2:54am
View
Deleted
In your C++ app, just instantiate your C# class as:
cso = gcnew MyCsClass;
Then use it:
cso->f1();
However, before doing this, you need to add a reference for your C# dll in your C++ project settings.
manoranjan
9-Dec-12 2:26am
View
Thank you!
manoranjan
3-Dec-12 1:15am
View
You are welcome!
manoranjan
2-Dec-12 5:01am
View
This is done on the router/firewall that is protecting the VPS. Ask the guy who configured VPS's private IP. He will need to know your client's and server's listening ports.
manoranjan
20-Nov-12 0:28am
View
I would be very careful of modifying medical images. Usually, one uses Histogram equalization to improve dynamic range of a low contrast image. However, understand its pros and cons before you implement it!
You dont need to use Leadtools library for this task. You can call .NET API directly in your MFC app using either C++/CLI or managed C++ extensions. If your target is Win 7 (should be since > 8bit is not supported in XP), then .NET is available and you dont have to redistribute it.
Another option could be to use OpenGL (it supports 16 bit bit depths). It will be more portable than .NET. However, OpenGL would involve more work.
manoranjan
19-Nov-12 4:44am
View
You are welcome :)
manoranjan
12-Nov-12 0:01am
View
Can you please be more specific? IUnknown->Release() returns a reference count and not HRESULT.
In any case you shouldn't bother releasing a crashed COM server. AddRef/Release mechanism is used to unload a COM server from memory. A crashed server is already unloaded (by the OS).
manoranjan
26-Oct-12 3:52am
View
Since you have not shared the code, I cannot say what the problem could be. Perhaps, you have used Form1 without namespace (e.g. System::Windows::Form). You can avoid this error by specifying the namepace scope 'using namespace System::Windows::Form;'
Since you are new, please take some time and understand C++/CLI before creating this project. Regarding your previous question, there is a nice article in CP that discusses instantiating CLI classes: http://www.codeproject.com/Articles/17787/C-CLI-in-Action-Instantiating-CLI-classes
I strongly suggest that you go through this (as well as other introductory articles) and samples before creating your project. Good Luck!
manoranjan
26-Oct-12 3:19am
View
Check if your Form1 class defines an empty constructor. Secondly, do not use parenthesis. See MSDN for details. It also provides a sample: http://msdn.microsoft.com/en-us/library/system.windows.forms.form.form.aspx#Y124
manoranjan
22-Oct-12 0:16am
View
Please read the KB article carefully. You cannot call any arbitrary function using rundll32. Also, it does not make sense to call all functions at command-line. E.g. why would anyone want to call malloc() at DOS prompt? In your case, although, the constructor does not return a value (or take inputs), it needs to be invoked on an allocated memory. Therefore, even if the class was exported, you cannot use rundll32. Finally, you need to use decorated names.
manoranjan
19-Oct-12 1:13am
View
You cannot use rundll32 to call any type of functions. Usually, you use rundll to call functions that don't take arguments. However, see http://support.microsoft.com/kb/164787 for details. You can only pass strings to the function and not integers. In addition, either you need to create a .def file (for creating the dll) or, pass the decorated name to rundll32.
manoranjan
18-Oct-12 5:05am
View
Create a C++ project that supports CLR (e.g. Windows Forms Application project). You will then be able to add references through the project's 'properties' dialog.
manoranjan
26-Sep-12 1:13am
View
You need to have 'something' on Linux to receive files. It can be FTP, FTPS, HTTP(S), SSH, RSH server or even your own custom 'receiver' application. You need to decide the appropriate mechanism before creating your program.
File upload thru FTP, SSH (i.e. SFTP or scp), RSH (i.e. rcp) are usually done through a batch file. You will need an appropriate client program. However, you can also find appropriate client libraries (mostly, FTP clients) that you can use in your Java or C# app.
On the other hand, HTTP is well supported in both .NET and Java SDK. Additionally, if you need secure communication, you can easily upgrade to HTTP over SSL (HTTPS).
Of course, if you feel that the overhead of installing (and securing) a http server is too much (and your application is small). Then you can write your own server that will receive files. However, from my experience, small applications turn big quite quickly :). You might be better off using existing infrastructure.
I don't recommend RSH or FTP since password is not encrypted during transmission.
HTH. Good luck!
manoranjan
25-Sep-12 5:21am
View
Have you set REMOTE to correct IP (or hostname) and not '000.000.0.000'?
manoranjan
25-Sep-12 5:10am
View
Usually, 'connection refused' error occurs if the server is not running. It can also occur if a firewall is blocking the connection. (but this is rare since f/w is usually configured to drop a packet). Check also whether TCP filter on network adaptor is enabled.
manoranjan
16-Aug-12 0:07am
View
You are welcome:) Glad to be of help.
manoranjan
14-Aug-12 8:19am
View
sorry, didn't understand your question fully. If you want to manually unload the dll, then you use /delay:unload and use __FUnloadDelayLoadedDLL2() to unload the dll. Otherwise, the dll will be unloaded when the application closes.
Show More