|
Back up...
If you're not writeing the code for BOTH ENDS of the communication channel, for the device AND the server, you can't pull this off.
If the patient presses the "help" button on the device, the device has to provide that data in the packet that's sent to the server. AND the server needs to be rewritten to be able to look for that signal in the device.
Perhaps you need to back up and FULLY explain how this system works and what you're writing code for. We can't read your mind or see your monitor from our side of the Internet.
|
|
|
|
|
ok am sorry!! i will explain again and i hope i will be clearer than! So, the patient has a device! this devicce sends to the server every 30 seconds a frame, this frame is a GPRMC and it gives to the server informations about the location of the patient! I wrote only the code of the server, and i want to add an option to this code, the patient will send also signs of emergency when he pushes on a button. The frame should be modified telling that the patient needs help!
What i understood from what you said that i can modify the GPRMC frame, and i can add a zone to the frame telling if he needs help. But, i will present my work to m friends, so i should telle them i have modified the frame to explain my ideas! So from the server's side, it is clear what i am going to do, but from the client's side, i just want to knowa how we can modify a trame to explain it queeckly! is it clear now?
|
|
|
|
|
No.
How is your server EVER going to know that the patient pressed the button??
|
|
|
|
|
I am trying to build a program that will grab the name of the active window in win 7. It did not go well. The problem is I do not know why it did not work as expected.
could someone look at my code and explain where I am misunderstanding this proccess. The program ran without any errors. It just did not return the expected result. That makes me think I am not going about it right. the progam and source is here.
http://www38.zippyshare.com/v/5523255/file.html[^]
|
|
|
|
|
No. I (for one) am not going near any site called "zippyshare" - particularly as a quick search would indicate it primarily hosts mp3 files which probably infringe copyright.
Post the relevant code fragments here, and we'll look at them.
But that is a poor description of your problem
dvdljns wrote: It just did not return the expected result
Some kind of idea as to what you expected it to return, under what circumstances, and what it did return would probably be helpful.
If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.
|
|
|
|
|
Hi, I am print text with fixed width (using Courier New font). But characters per line is very little. This slim font with GDI+? Or other way.
note: Cshap + .Net 4.5
|
|
|
|
|
You can use a variable width font or just choose a smaller point size. However, it is not very clear exactly what your problem is.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Problem is:
I print data into table. And I need more characters per line of paper, because text which fill table is overflowing over line.
Text in table must be printed font with fixed width.
|
|
|
|
|
Then you need to make your characters smaller, or make the table space bigger.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Thanks for your post. I am changed page orientation to landscape.
Smaller font I can not set.
I am expect, that is possible print narrower character. My mistake.
|
|
|
|
|
Dear All,
I am looking for the working samples or links of .NET Code Generator to generate C++ DLL where included Structure, unsigned char * so on.
So far, I didn't see any solutions in google search and I hope some one will advise me to get the best for me.
Thanks and best regards
|
|
|
|
|
MrKyaw wrote: .NET Code Generator to generate C++ DLL That looks like a bit of a contradiction. Perhaps you could explain exactly what you are trying to do, and why you are not just creating the DLL as a project.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Well, if I understand your question correctly (not sure I do), you haven't found any examples because the .NET Framework compilers can't generate a standard C library DLL.
They can generate a managed code assembly. But whether this fits your needs or not depends on exactly what you're really doing with this and why.
|
|
|
|
|
Dear Dave,
Thank you for your advice seem like close the solution I want to implement.
I am looking for the .NET code generator to generate the C++ DLL as that translates the source into usable .NET package.
I can manage to find only the working sample of Data Base Code Generator in .NET but not C++ DLL.
Best regards
|
|
|
|
|
That's because there isn't one.
.NET (managed code and CodeCom classes) cannot write a C++ library .DLL. You have to use the C/C++ compiler to do it. Unless, that is, you want to write you own compiler.
|
|
|
|
|
Hi,
How about C++ to C# Code Converter developed by tangile software solutions seem like i want.
But not same or ok for my C++ source or DLL especially for C++ structure pointers or most of keywords used in C++ to C# keywords.
Best regards
|
|
|
|
|
|
Hi,
Thank you your word and if u came across any source or something pls let me know.
Even, I had draft idea to implement this but don't know what will be the detailed requirements.
Nothing is impossbile under the sun shine except very tight dead line.
Best regards
|
|
|
|
|
Hi Members,
I have a requirement where i need to display a popup control through my window service. I know in Win 7 window service can not communicate to desktop.
So can i get some ideas over it.
Regards
|
|
|
|
|
I suppose one thing you can do is create seperate applications and send/receive windows messages between them.
Here's a quick google result[^]
If you've never done this it might take you a few hours to figure out how it is done. I suggest a small test project and build from there.
hope this helps. But again, try to talk to your boss about this ridiculous requirement.
|
|
|
|
|
repost from yesterday (in the same forum!)
|
|
|
|
|
Hi Members,
I have an applications installed on two machines (client & server) on a Network. Whenever any upgrade of the application is available on the Server machine, Server machine have to notify the client machine. This notification has to be made through the Taskbar Flyout or Tray Notification similar with notifications of java version upgrade or AVG AntiVirus Version Upgrade
I have tried to resolve this thing using Window service and this approach is working nicely on the XP or lower version of o/s. But on Window 7 it’s not working as we all know that from vista onwards Window services run on a different session
So can somebody please comes up with any idea so that I may able to resolve this problem
Regards
|
|
|
|
|
PankajKSood wrote: But on Window 7 it’s not working as we all know that from vista onwards Window services run on a different session
"We" also know that Google has links to how this is solved.
PankajKSood wrote: Whenever any upgrade of the application is available on the Server machine, Server machine have to notify the client machine.
..and what do you do with the client-apps whose machine is turned off? Usually, the client-app "asks" the server whether an update is available (as easy as checking if a new file is on your server) and proposes to download it.
|
|
|
|
|
I told you exactly how to do this yesterday.
Again, you DON'T do this from a Windows Service and you really don't need a service to check for a new version of an app. You can do that with a normal application that runs out of the registry's Run key which will run whenever a user logs in.
|
|
|
|
|
Hi
I have implemented the IWMHeaderInfo3 interface from the Windows Media Format SDK as follows:
[ComImport, Guid(IID.IWMHeaderInfo3), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
internal interface IWMHeaderInfo3 : IWMHeaderInfo2
{
...
void GetAttributeIndices([In] ushort wStreamNum, [In, MarshalAs(UnmanagedType.LPWStr)] string pwszName, [In] ref ushort pwLangIndex, [Out, MarshalAs(UnmanagedType.LPArray)] ushort[] pwIndices, [Out, In] ref ushort pwCount );
...
}
My problem is that according to the MSDN documentation the pwLangIndex parameter needs to be passed a null value at times. However a ushort cannot be assigned a null value so when I try to reference the method in code with a null in that position it complains the closest matching method has invalid parameters.
The unmanaged method is expecting a pointer to a WORD for this parameter so could I use IntPtr instead of ushort and the MarshalAs command to treat it as a WORD *? If so how do I do this?
What is the correct way to get around this issue? All help greatly appreciated.
|
|
|
|