15,742,120 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 Javascript questions
View C++ questions
View Python questions
View Java 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 Buddhi Chaturanga (Top 68 by date)
Buddhi Chaturanga
8-Jun-17 7:24am
View
Thank you for the answer I will try this solution and verify it as an answer later.Really appreciate your thoughts.
Buddhi Chaturanga
31-Jan-17 9:49am
View
Thank you for the fine answer :D
Buddhi Chaturanga
31-Jan-17 9:49am
View
Thank you for the reply :D
Buddhi Chaturanga
25-Mar-15 21:55pm
View
@CubbiMew - Thanks for the quick reply pal,I have tried that already but the problem is we have to use template and that kind of things and specify the type of the element.
Imagine we have set of overloaded functions(only C++) regarding "bar" say,
bar(double* d_arg){...};
bar(int* i_arg){...};
then we call each functions only using curly brackets without specifying respective type,
bar({1,2,3}) expect to invoke bar(int*)
bar({1.0,2.0,3.0}) will invoke bar(double*) respectively.
(Note that compiler should aware of type of function argument)
Buddhi Chaturanga
8-Feb-15 2:37am
View
Thanks for the reply."There is no way to (reasonably and reliably) convert C++ 11 code into C++ 98 code." notice the point as you mentioned.
Buddhi Chaturanga
17-Jan-15 14:07pm
View
Thank you Joch' very much.Your last point related to "How" topic was really helpful.
Why MS compiler doesn't support for inline assembly on x86-64 builds?
Buddhi Chaturanga
17-Jan-15 14:04pm
View
Thank you for the reply,really appreciated.The link was really helpful.
Buddhi Chaturanga
17-Jan-15 14:04pm
View
Hahaha agree,, Thank you for the reply :D
Buddhi Chaturanga
17-Jan-15 14:03pm
View
There are some particular cases in optimization;that compiler cannot make a decision or produce.
Buddhi Chaturanga
21-Nov-14 4:09am
View
Thanks for the quick reply.
Buddhi Chaturanga
10-Jun-14 23:14pm
View
Yeah I am trying Qt + nVidia CUDA these days.Thank you Sefan :D,but I was trying to develop core library my stupid intention :)
Buddhi Chaturanga
9-Jun-14 21:47pm
View
Thank you very much
Buddhi Chaturanga
9-Jun-14 21:47pm
View
Thank you.. Thats what I meant too..
Buddhi Chaturanga
9-Jun-14 2:39am
View
These days I am referring "The C++ Programming Language -Fourth Edition" by Bjarne Stroustrup.
But It's not greatly explain some critical stuff with compiler side,I really want to learn C/C++ compiler design and Runtime checks(regarding Visual C++)
http://www.amazon.com/Advanced-Compiler-Design-Implementation-Muchnick/dp/1558603204
Buddhi Chaturanga
4-Jun-14 22:16pm
View
@Stefan Lang->Thanks for the reply
Buddhi Chaturanga
4-Jun-14 4:44am
View
@Stefan:
So then how particular DirectX API deals with various kind of GPUs these days-mainly nVidia and AMD/ATI graphic cards.Did Microsoft integrate all the functionality built in different Graphic cards from respective vendors?
Buddhi Chaturanga
19-Mar-14 23:59pm
View
Thank you.You meant involving with Windows Thread?
Buddhi Chaturanga
19-Dec-13 8:34am
View
when linking X64 target machine type lib with our t.obj it keep saying that "kernel32.lib" is missing ,kernel32.lib consists in WIN SDK("C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib\x64") so I want to know how to give this path when the compilation of t.cpp is running through a bat file
Buddhi Chaturanga
29-Oct-13 23:46pm
View
thankz for the cooperation
Buddhi Chaturanga
29-Oct-13 6:18am
View
thank you.But your answer is alternative one.I have done that before.
Buddhi Chaturanga
21-Oct-13 23:02pm
View
Specific Problem like this,if you have an application(someone developed) input only taken as a String literal - "Fire" so when any user give the command "Fire" we have to execute the function Fire() in our app,so every relevant information/data we receive from that specific application are lying in string format think in real situation Function "Fire"-in C/C++ it defined like this:
void Fire(int x,int y);
then in specific app user input like this: Fire([23,45])
this command receive from my C/C++ application as a string "Fire([23,45])" therefore firstly I have to split this and put them as elements of vector<string>,so the first element of vector is Function name "Fire" others are arguments/parameters respectively.Using string "Fire" I have to execute the real Fire(x,y) Function,I prefer the most efficient manner which means without HASHMAPPING,ARRAY OF FUNCTIONS/FUNCTIONS POINTER,do we have any fundamental approach which is having simple mechanism?
Buddhi Chaturanga
21-Oct-13 23:02pm
View
Specific Problem like this,if you have an application(someone developed) input only taken as a String literal - "Fire" so when any user give the command "Fire" we have to execute the function Fire() in our app,so every relevant information/data we receive from that specific application are lying in string format think in real situation Function "Fire"-in C/C++ it defined like this:
void Fire(int x,int y);
then in specific app user input like this: Fire([23,45])
this command receive from my C/C++ application as a string "Fire([23,45])" therefore firstly I have to split this and put them as elements of vector<string>,so the first element of vector is Function name "Fire" others are arguments/parameters respectively.Using string "Fire" I have to execute the real Fire(x,y) Function,I prefer the most efficient manner which means without HASHMAPPING,ARRAY OF FUNCTIONS/FUNCTIONS POINTER,do we have any fundamental approach which is having simple mechanism?
Buddhi Chaturanga
21-Oct-13 23:02pm
View
Specific Problem like this,if you have an application(someone developed) input only taken as a String literal - "Fire" so when any user give the command "Fire" we have to execute the function Fire() in our app,so every relevant information/data we receive from that specific application are lying in string format think in real situation Function "Fire"-in C/C++ it defined like this:
void Fire(int x,int y);
then in specific app user input like this: Fire([23,45])
this command receive from my C/C++ application as a string "Fire([23,45])" therefore firstly I have to split this and put them as elements of vector<string>,so the first element of vector is Function name "Fire" others are arguments/parameters respectively.Using string "Fire" I have to execute the real Fire(x,y) Function,I prefer the most efficient manner which means without HASHMAPPING,ARRAY OF FUNCTIONS/FUNCTIONS POINTER,do we have any fundamental approach which is having simple mechanism?
Buddhi Chaturanga
8-Oct-13 22:52pm
View
@Richard MacCutchan -> Stackoverflow people.
Buddhi Chaturanga
6-Oct-13 22:41pm
View
thank you.But lot of people are saying that constructing a subclass of std::thread class isn't a wise idea.I want exact reason or definition for the cause,could you help me on that?
Buddhi Chaturanga
28-Aug-13 11:13am
View
yeah But I have less time to compete my project.I am really interested C/C++.Also C/C++ more advance than Java.Since I am Java Developer there are some issues with C/C++ semantics.
Buddhi Chaturanga
27-Aug-13 23:26pm
View
okey I will never ask Qts on This site..also thank for your hints. I also wanna gives you people this "These Qts' ain't my HOMEWORKS I told you people that I am new to C/C++ and I like to start with efficient and effective developing"..thank you//
Buddhi Chaturanga
27-Aug-13 10:06am
View
no I only use codeproject,stackoverflow,Cplusplus.com and LearningC++ as my C++ Resources.
Buddhi Chaturanga
27-Aug-13 9:57am
View
thank you! :D
Buddhi Chaturanga
27-Aug-13 4:04am
View
yeah.I thought basically learning Directx and OpenGl is a wise idea.
Buddhi Chaturanga
27-Aug-13 1:18am
View
This is nothing like comparing orange with apple or pineapple :D problem is people cannot grasp my question.Think you want to build specific 3D application for certain problem, you know there are various number of O/S on this planet,but considering performance and certain tasks you have to choose which technology is most suitable under which O/S.. now you will say that the choosing is depending upon the problem.So think for 3D game developing most developers chose Windows and DirectX platform ,but for some complex Algebraic geometrical simulations some chooses Opengl based applications on Linux.So different tech has different aspects
Buddhi Chaturanga
27-Aug-13 0:11am
View
:D not my homework pal,Just for simple clarifications.Nowadays googling is a mess.Please read the question and answer I am not asking basic differences here..
Buddhi Chaturanga
26-Aug-13 13:06pm
View
I am not lazy.I will prove you.I will develop this system and find new way to link programs one another just be with this thread and I will provide my updates and progress to you.Condense and forward to you.If I am a software Engineer or Computer Scientist,this problem has been solved/concluded already., :D
Buddhi Chaturanga
26-Aug-13 12:45pm
View
:( I think I made you disappointed sorry.In my company no one knows how to answer this.I am upon my self.I got your idea but I really have anxious to build this stuff please guide me if you can.
Buddhi Chaturanga
26-Aug-13 12:42pm
View
:) I wanted to create something efficient.. Actually I am not an software engineer I am Math + Physics guy.. seems terrible huh :D .. not well experienced in deep computer engineering Just used Programming and developing stuff for Computational and Simulations purposes.But I wanted to study kind of deep computer science+engineering to learn about Computer AI and Modern compilers before that I thought it wise to develop some efficient programs in order to solve some critical problems in nowadays computer field.
Buddhi Chaturanga
26-Aug-13 12:24pm
View
Please go through these discussions and convey your ideas
LINK 1
[
]
Buddhi Chaturanga
26-Aug-13 12:23pm
View
Please go through these discussions and convey your ideas
LINK 1
[
]
Buddhi Chaturanga
26-Aug-13 12:23pm
View
Please go through these discussions and convey your ideas
LINK 1
[
]
JNA -JAVA NATIVE ACCESS?
LINK 2
[
]
Buddhi Chaturanga
26-Aug-13 11:57am
View
Oh.Sorry my bad I kind of new to C/C++ world.It's nice to meet you here.Are you a senior software engineer?
Buddhi Chaturanga
26-Aug-13 11:40am
View
For more efficiency/performance.As I involved with 3D game developing stuff.
Buddhi Chaturanga
26-Aug-13 11:32am
View
Sorry then I thought it is helpful for you all.Nowadays I am referring it.Problem is I am a java developer .. new to C/C++ shifting Java to C/C++, but I want to build my stuff using these two powerful programming sources;also Assembly included.
Buddhi Chaturanga
26-Aug-13 7:41am
View
http://stackoverflow.com/questions/18442839/wise-use-of-const-keyword-in-a-function-declaration
Buddhi Chaturanga
26-Aug-13 7:35am
View
Can't you describe using the function I defined above:
const int*const Functiontwo(const int*const&)const;
Buddhi Chaturanga
26-Aug-13 7:34am
View
thank you
Buddhi Chaturanga
26-Aug-13 7:30am
View
@pasztorpisti thank you very much for your cooperation buddy.
I want to remind u something here.Please refere this book (download it)
http://bookos.org/book/1313643/fe9647
The author has mentioned a critical point about shared memory at page 5 under sub topic "CONCURRENCY WITH MULTIPLE PROCESSES" refer that.
Buddhi Chaturanga
26-Aug-13 7:04am
View
I gone through this web site:
[
CLICK HERE
]
but could not grasp the exact idea I wanted.Need better explanation how to put those "const" keyword appropriately on each place and how it affects to program efficiency.?
Buddhi Chaturanga
26-Aug-13 4:01am
View
Data passing to C/C++ program from JNI DLL and retrieving respective data from C/C++ program(.exe)
Buddhi Chaturanga
26-Aug-13 2:28am
View
Here my objective was to develop a data link between a Java Program and C/C++ program following an efficient and effective path.
Buddhi Chaturanga
25-Aug-13 22:35pm
View
@pasztorpisti yeah I told you before JNI using for connecting purpose(like Messenger) those two simultaneously running programs(Java & C/C++) should share their memory as mentioned before.I want to ask this why can't we construct a structure to access each shared memory allocations of C/C++ program through JNI?I think you can grasp my point?(NOT IPC THROUGH JAVA NATIVE INTERFACE)
Buddhi Chaturanga
25-Aug-13 4:41am
View
Especial case is Calling C++ program through JNI based Java application and retrieve the data and send the data to it.Building a Data/Process link between a Java program and C++ program in a simplest and efficient manner.Constructing this kind of model/algo appears to be complex and rough.
Buddhi Chaturanga
24-Aug-13 11:51am
View
Sorry This may be shown like a mirage,but I want to do something new.I really appreciate if you can provide us some theoretical background and example codes for SHARED MEMORY IPC(give us few hints).Don't waste your valuable time on this but if you can help us by providing some simple tutorial kind of stuff ... it's really appreciated.
Buddhi Chaturanga
24-Aug-13 9:02am
View
Why we should rely upon some in built stuff every time!Don't you like to invent and engineer you own efficient tech?Don't think this is such wasting time or garbage.May be we can find way other than using DLLs,IPC.. or google built modules.
Buddhi Chaturanga
24-Aug-13 9:00am
View
Thank you .. Shared Memory is the only way.
Buddhi Chaturanga
22-Aug-13 6:53am
View
http://msdn.microsoft.com/en-us/library/windows/desktop/aa365574(v=vs.85).aspx
I analyzed the content before.My target was to construct the stuff without external protocols or data wrapping.
Buddhi Chaturanga
22-Aug-13 6:49am
View
I am going to research this problem(Except Socket Programming) with in next two weeks if I end up with good solution.I will post the entire Architecture and Coding stuff for you all.Within next few days If you could find exact solution Please post on this thread.
Buddhi Chaturanga
22-Aug-13 6:42am
View
@ALL *FINAL CONCLUSION* => NO PROPER EFFICIENT SOLUTION.IPC will be the only solution up to now.Thank you all for your effort and contribution.
Buddhi Chaturanga
22-Aug-13 2:35am
View
@KarstenK => I got your idea,Here I want to do is Transfer/Communicate data between two programs using single or multiple DLLs.If we define variables in global scope how we can visible values of those two each one of programs.Data values should be updated,visible.
Buddhi Chaturanga
22-Aug-13 0:26am
View
JAVA <=> JNI DLL fine.. collaboration fine.. but passing/recieving values of any data type to JNI DLL <=> C/C++ (EXE) using SETTERS/GETTERS FUNCTION not the option
Buddhi Chaturanga
21-Aug-13 22:58pm
View
Shared Memory inside DLL for multi accessing programs problem is how?
Buddhi Chaturanga
21-Aug-13 22:53pm
View
@pasztorpisti => Multithreading/Concurrency comes into play but I caught a problem that DLL creates a single model and different memory location for each program if can find a path to link or map this memory address for program which are accessing this dll the concept of MEMORY POOL established.We have no help or aid from OS services this by our own.If we can develop a concept or algo' to mapping stuff inside the DLL problem solved.Since I am not an advanced expert in DLL/Win32 programming I do not know how to implement it. :|
Buddhi Chaturanga
21-Aug-13 22:46pm
View
@pasztorpisti => Yeap.. Sorry for my bad spelling mistakes sometimes.. I think you can grab the total idea.I need to construct two way data communication process.It's like this:
JAVA PROGRAM <=> JNI DLL <=> CONNECTOR(C/C++) DLL <=> C/C++ Program
So my idea goes like this ..<THIS CONCEPT FOR PRIMIIVE DATA TYPES ONLY>
Think I have defined and declared an int variable in Java int x,also in similar manner within C/C++ program int x;but to relate/map this integers we linker between these two,So JNI comes in to play.JNI somehow directs/translates this int => jint type inside dll we can do interpret cast/conversion to this jint => known C/C++ int type;now we have climax of this conflict that is somehow we have to pass this integer value to simultaneously running C/C++ program(.exe) and think inside our C/C++ program we change that int value to something and we have to pass it back to Java program through that dll.
Buddhi Chaturanga
21-Aug-13 10:15am
View
@pasztorpisti => there is no secret dear pal... :D I am developing plugin for 3D simulation system.There is subsystems developed using JAVA/JAVAFX ,but main core (codebase) is totally developed using C/C++ so already theses two frameworks have been connected using sockets programming you mentioned earlier..=> OBJECT WRAPPING concept.But I realized that it's not the efficient way to construct such sysyem.Since Java can call his natives; we have to use it wisely for construct and extend our data links with C/C++ programs;therefore we able to two way communication.most efficient:we are dealing with pure C and assembly.JNI directly pave the way for invoking implemented C/C++ Function within DLL..so My idea is if we can share the same memory location allocated in DLL for JNI process to our C/C++ EXE program we directly able access and change the values of respective data types(Mostly primitive ones) @ runtime.
Buddhi Chaturanga
21-Aug-13 10:04am
View
@Richard => I have already researched some variations.. One single DLL duplicate it's own memory spaces for different processes. Even if we load Same single DLL within two different programs we can obtain two different memory allocation.My point is HOW WE CAN MAP THESE TWO MEMORY ADDRESSES FOR DECLARED GLOBAL VARIABLES IN DLL then we can direct the data flow.
Buddhi Chaturanga
21-Aug-13 6:25am
View
@pasztorpisti I got your point. I am not advanced Win32 Programmer.But I wanted to do here is pass data between running Java Program and C/C++ program.I think JNI has kind of efficient approach than USING SOCKET PROGRAMMING OR
IPC http://msdn.microsoft.com/en-us/library/aa365574(v=vs.85).aspx
I wanted to know with or without using separate DLL for C++ program how we can pass values from C++ program to Java side JNI DLL..?
Buddhi Chaturanga
21-Aug-13 6:16am
View
http://stackoverflow.com/questions/18349760/how-to-interchange-data-between-java-program-and-c-program
Buddhi Chaturanga
21-Aug-13 5:50am
View
@KarstenK Could you send me some relevant example link or resources web sites for further info?
Buddhi Chaturanga
21-Aug-13 5:46am
View
In spite of SOCKET PROGRAMMING .. Couldn't be achieve it by using only JNI and DLLs ? Build a primitive link between Java Program <=> C/C++ program (Those are running same instance)
Buddhi Chaturanga
21-Aug-13 5:42am
View
Thank you for links.But I want to construct two way data communication between two separate Java and C/C++ programs running simultaneously using DLLs.Example If I declared int x variable in DLL so problem is we must able to change it's value by each program and the value should be visible to each program instantaneously.(Similar to static variable)
Show More