|
I encountered an SQL exception when I load the following codes. The exception "SQL server does not exist or access denied, Line 0 .NET sqlclient data provider". I used the .NET smart device application and run it with its emulator or with a PDA the above exception occurred but if I run it using the compiled exe application on my computer it works. Can anyone help or is there a website meant for compact framework?? Thanks alots for ur attention.
string tempStr = "SELECT CountryCode " +
"FROM Inventory_Dept_Mapping " +
"WHERE (DeptCode = @DeptCode) " +
"GROUP BY CountryCode";
DataSet tempDS = new DataSet();
SqlCommand sqlCom = new SqlCommand(tempStr, new SqlConnection(DataBaseConnectionString));
sqlCom.Parameters.Add("@DeptCode", SqlDbType.VarChar);
sqlCom.Parameters["@DeptCode"].Value = this.DeptCode;
SqlDataAdapter sAdapter = new SqlDataAdapter(sqlCom);
try
{
sAdapter.Fill(tempDS, "ctrycode");
}
catch (SqlException ex)
{
MessageBox.Show(ex.Message + "\nLine " + ex.LineNumber + "\n" + ex.Source);
}
|
|
|
|
|
How do I associate an icon with an application so explorer displays my icon?
|
|
|
|
|
What is youd development environment?
Regards,
João Paulo Figueira
Embedded MVP
|
|
|
|
|
If u r using eVC++, u could paste your app icon in Resources->Icon as bitmap.
|
|
|
|
|
Hi,
I've derived my View Class from CScrollView so I could use the scroll bars when displaying images. But I seem to be having a few problems.
When calling a method from the CScrollView in the View Class I've tried stuff like
CScrollView::SetScaleToFitSize(p);
SetScaleToFitSize(p);
this->SetScaleToFitSize(p);
everything compiles and runs but the changes don't take affect in the emulator or the device. I’ve also tried methods like
SetScrollRange(0, 0, FALSE);//SB_VERT & SB_HORZ
SetScrollRange(SB_VERT, 0, 0, FALSE);
SetScrollRange(SB_HORZ, 0, 0, FALSE);
but again these have no affect. Everything else is working grand, I can move about using the scroll bars etc.. but the idea was to have them hidden but be able to use their functionality.
Any input would be very helpful.
ar
|
|
|
|
|
Ok, I did some more reading and I'm guessing the function (SetScrollRange())is not available for the Pocket PC, but an overloaded one is, but I need to pass the handle of the scroll bar into the function call.
How can I get the handle of a scrollbar from a class that is derived form the CScrollView class so that I might be able to pass it into it?
Thanks again,
ar
|
|
|
|
|
Dear All..
I am going to work on build an SMSC (Short Message Service Centers) application (SMS Connector to GSM Server) and i am new with dealing this subject in vc++, i make my own research on this field but i had good idea about the hole process of SMSC but i still need technical information so if there is any one had been worked on something like that to help me with this application or if anyone know web site i can use to guide me in that i will be grateful..
Best Regards,
Rasha
|
|
|
|
|
Is there any way, programmatically, for preventing lost data whenever I
hard-reset PocketPC2002 and PocketPC2003?
In the other word, I need to run a specific .exe file after my PocketPC2002 and PocketPC2003 boot-up
(power-up) .
Any Answer is most welcome.
Regards
Patra
|
|
|
|
|
Storage:
Internal flash rom (such as the iPAQ file store) or external storage devices (CF, SD, etc) if your device offers such capabilities.
Running an exe after a cold boot:
If you use an external storage device, the os will look for \[storage device]\[processor type]\autorun.exe when it boots (or when a card is reinserted). As for internal flash rom, I dont know.
[Edit: removed < and >]
/Jonas
---
"Man will never be free until the last king is strangled with the entrails of the last priest". -- Denis Diderot
|
|
|
|
|
Thanks for your reply.
How can i know storage device folder name programmatically for different device like IPAQ,TOSHIBA,Imate,Dell etc .
Regards
Patra
|
|
|
|
|
Im not sure you can do this with 100% certainty on all possible pda + external devices combinations. SHGetSpecialFolderLocation/Path might help you.
---
"Man will never be free until the last king is strangled with the entrails of the last priest". -- Denis Diderot
|
|
|
|
|
I have already done this on the past with an iPAQ 5450 and 3850. The iPAQ File Store folder operates as a flash card when the device is cold booted, so placing an autorun.exe under a \iPAQ File Store\2577 folder will achieve the effect you desire. Beware of removable cards because if any of these is inserted upon cold boot, it will receive higher priority: the autorun.exe on the \iPAQ File Store\2577 folder will not be run.
Regards,
João Paulo Figueira
Embedded MVP
|
|
|
|
|
What are my options if I want to use SOAP for an application developed using eVC++ 4?
|
|
|
|
|
|
Thank you.
One more question:
Are there any issues in serializing a class in Pocket PC and desrializing it in Windows XP and vice-versa, or is this possible at all?
|
|
|
|
|
If you mean data binary compatibility with ARM, the answer is yes. You can serialize a structure to a file using WriteFile on the desktop and read it on the Pocket PC with ReadFile .
Regards,
João Paulo Figueira
Embedded MVP
|
|
|
|
|
I'm only scratching the surface here. The application that I'm writing needs to transfer commands (text) and binary data (pictures) to and from Pocket PC. So, I'm trying to decide what is the best way to transfer the binary part.
I'm not sure if using WriteFile would apply in my case, since I need to write to the disk first and read back again.
A sort of in-memory solution would be more elegant, with no performance penalty. (I'm coming from C#, where you can serialize a class in memory and send it down the socket to be read by the other party)
Any ideas?
Your comments are valuable.
|
|
|
|
|
no_reg_name wrote:
I'm not sure if using WriteFile would apply in my case, since I need to write to the disk first and read back again.
What I meant is that data is read and written in the exact same way on the PPC and the Desktop.
no_reg_name wrote:
So, I'm trying to decide what is the best way to transfer the binary part.
Don't change it: send it as it is. The Pocket PC will read it using the same code you use on the desktop. This will happen irrespective of the medium - I've already ported images on database blobs to and from the Pocket PC without any format changes.
Regards,
João Paulo Figueira
Embedded MVP
|
|
|
|
|
Hi All,
I am using HP, TOSHIBA & DELL AXIM PocketPC's.
How to prevent lose of data when I hard-reset my PocketPC device ?
For example, if i lost registry keys and other third party dll's which are necessary to run my application.
In the other word, I need to auto run my application after hard reset the device.
Suggestions or idea are most welcome.
Regards,
AKS
|
|
|
|
|
Put your desired cab files into the file store. This is a permanent memory which isn't lossed after a hardreset.
The cab files are automatically reinstalled after a hardreset.
|
|
|
|
|
I am using C# and developed a program. When I load it into my PC2003 iPAQ, it says the company is "My Company." How can this be changed to meaningful data?
Thank you
camasmartin
hobby programmer
|
|
|
|
|
Hello everybody,
What application should I use to debug application directly PocketPc?
thanks
|
|
|
|
|
You can download Microsoft eMbedded Visual C++ either version 3 or 4. They both debug Pocket PC.
Hope that helps, or have I missed the point?
Ant.
|
|
|
|
|
Hi,
I'm writting an application in embedded visual c++ 3.0, and I need to
encrypt and decrypt some buffers, using the Rijndael encryption. Does
anybody have any code, components or links related to that?
Thanks!
Arnau
|
|
|
|
|
Hello all!
I'm just starting out with the PPC and was stepping through a super simple sample (ie. create a project and compile it - deploy to emulator and run). Nothing at all exciting or hard.
I'm able to get the simple wizard generated project to compile and run on the emulator. What I'm having a problem with is that when I try to go to the form (the project is a Windows Application), it displays the following error message:
"An error occurred while loading the document. Fix the error, ...
File or assembly name EnvDTE, or one of its dependencies, was not found."
I can't find a reference to it anywhere and when I actually try to add the DLL as a reference (envdte.dll), it doesn't help. Neither can I add it as "envdte" or "Microsoft Development Environment" (or whatever it was called in a article I found to try and solve the problem).
So, what do I need to do so that I can actually add things to the form?
Any help will be appreciated!
Thanks,
Mike
|
|
|
|