|
#define LANG_HINDI 0x39
Found in WinNT.h.
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
What about SUBLANG_ENGLISH_US?
|
|
|
|
|
Source: resources.h
// Microsoft Visual C++ generated include file.
// Used by Generic.Rc
#define SUBLANG_ENGLISH_US 0x01
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
You probably want SUBLANG_HINDI_INDIA , which also has the value 0x01.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Stuart Dootson wrote: HINDI_INDIA
You could be booked for trespassing. Genuinely looks like my call. lol!! thanks for the reply.
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
Hello Friends
I m exporting a variable from one dll and importing same variblee in other dll.The problem is If i update that variable in first dll then i m not getting the updated value of that variable in second Dll.
I linked lib file to project settings,i copied lib and dll file also.and also header file of first dll to other.
Do i need to make any other changes?
Please Reply
Thanks & Regards
Yogesh
|
|
|
|
|
yogeshs wrote: The problem is If i update that variable in first dll then i m not getting the updated value of that variable in second Dll.
yogeshs wrote: If i update that variable in first dll
How do you update the dll? You are doing it in the same process?
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
I initialize the variable like this _declspec(dllexport)int temp =20;
and i m updating in code just like temp++ on initialization.But i m not getting 21 in second dll ,it is always showing 20 in second dll where i m importing.
|
|
|
|
|
If you want to share data between two processes linked to your DLL then see [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I think he's missing a point. Needs a better view about Dlls. I referred him the same link but not sure if he really meant that one.
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
I m not getting from this link.Do u hv any other iDea?
|
|
|
|
|
yogeshs wrote: I m not getting from this link
What are you meaning?
yogeshs wrote: Do u hv any other iDea?
The link shows how to share memory between different applications linked dynamically with the library. It is what you need, isn't it?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I dont know if your answer was incorrect so whats the correct answer?
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
My answers are 'a priory' correct.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
See Dear,I m very new to MFC and once again let me clear u the picture.I m creating plugin for 3ds max in MFC (.dlu).And as i know is onlu about export and import for variables,func... by using __declspec(dllexport) int temp = 0;
So this is the scenario:
I m creating two dll in MFC.I want to share a varible between two.I Exported from one DLL by specifying _declspec(dllexport) int temp = 20;
in header file.
And I copy the .dll and .lib file in second dll (debug folder and also header file of first dll to second dll.I also specify the .lib file in the link path in project settings of second dll.I imported in second dll by __declspec(dllimport) int temp;
Now the problem is If i made any changes on temp variable in first dll then it is not updating in second dll,the second dll always considering temp as 20.
Please suggest me some easy way .
Thanks
Yogesh
|
|
|
|
|
I cant find your reply but did you see my link I think it solves your problem.
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
See here[^].
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
I try to send some data from my multiproject, from C++ to C# but i keep getting the error:
: cannot convert parameter 1 from 'System::Double ^' to 'System::String ^'
Been working all night with trying to find the solution, but im at a loss. Here is the essential part of the code:
C++ part: (this is a mod from a tutorial)For further reading[^]
TestCSharpLib1::CSharpClass ^ csharpClass = gcnew TestCSharpLib1::CSharpClass();<br />
<br />
marshal_context ^ marshalCtx = gcnew marshal_context();<br />
<br />
System::Double ^ d = marshalCtx->marshal_as< double >( static_cast< double >( In2 ) );<br />
<br />
csharpClass->Text = d;
And the C# part:
namespace TestCSharpLib1<br />
{<br />
public class CSharpClass<br />
{<br />
private double _text;<br />
<br />
public CSharpClass()<br />
{<br />
_text = 0;<br />
}<br />
<br />
public CSharpClass(double text)<br />
{<br />
_text = text;<br />
}<br />
<br />
public System.Double Text<br />
{<br />
get { return _text; }<br />
set { _text = value; }<br />
}
Any help appeciatet!
|
|
|
|
|
It seems like code from two examples was mixed together. What are you trying to do? (And if it's dealing with C++/CLI, you may want to ask in that forum.)
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
Looking at it isolated, im just trying to send a double value back and forth between C++ to C# and back again...
The background problem is as:
Im getting a double input to a dynamic link library (the c++ snippet) from a third app, then i need to forward that input to the c# code, which will then do some stuff in a fourth app (matlab), and return the result C# and then to the C++ which will then return to the app. The app only supports dynamic link libs with a specific header (EES its called) and thus i cannot "just" use the C# code - And the Matlab code is in .net so i cannot use just C++ either.
I will try declaring a different data type as advised, so far i cant get it to work with (double) d : /
|
|
|
|
|
That happens because you are trying to assign between reference and value types.
You can cast it like:
csharpClass->Text = (double) d;
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
Thanks you for the answer, took me a while to figure out what you meant, but once that happend, it all made alot more sence - its impresive how bad with c++ i was just 48 hours ago..
@those who complain about the wrong forum - Sorry, but on the bright side i even made it as far to actually knowing why its the wrong one!
|
|
|
|
|
Try
csharpClass->Text = d->ToString();
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
You fell into the trap. I was about say something like that , later realized "Text" is of type double too.
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|