Wednesday, February 3, 2016
C # project will not run in the real machine ppc?
Machine environment is xp sp2 + vs2005 + vm 5.0 ppc + ActiveSync4.5.5059
Real machine is dopod 830 ppc
The question now is works with C # created can not run on the real machine, an error: "The application (* .exe) than this device requires a newer version of Microsoft (R) installed .NET Compact Framework."
Click Error details Show "InvalidProgramException"
Dopod 830 online queries cf2.0 already installed, and I once again on the machine installed cf2.0, also or not.
Projects can be properly run in the simulator, but moved to the top of the real machine, even a simple example and can not run, there will be above error, please help out, thank you! !
Reply:
Previously encountered such a problem, like a heavy-.netcf2.0
Reply:
To zhuyun1111 (rain desert):
Thank you for your answer.
Before the problem has been resolved on the phone installed NETCFv2.wm.armv4i.cab.
Give you 10 minutes, not too few. ^ _ ^
Reply:
Oh, the original can not just give 10 points ah, it gave the okay, very grateful.
Knot tie ~
wap2.0 (xhtml) is not supported in the select onpick how to do? What alternatives horse?
I do have one idea is to use the label in xhtml wml in, but does not seem to?
Consult experts. . . . Thank you. . . . Or are there any other solution? ? ?
& Lt; DOCTYPE html PUBLIC "- // WAPFORUM // DTD XHTML Mobile 1.0 // EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"><html xmlns =" http!: //www.w3.org/1999/xhtml "xmlns: wml =" http://www.wapforum.org/2001/wml "& gt;
Then
using onpick& Lt; select name = "category" & gt;
& Lt; option wml: onpick = "? Categoryid = xxx" & gt; xxxx & lt; / option & gt;
& Lt; / select & gt;
Reply:
xhtml does not support the event ,,, and in accordance with the above method does not work, toss a morning, to ask for advice! ! ! ! thanks, thanks
Reply:
The issue is resolved, my idea is correct
Reply:
Are all good suggestions! Worth learning
Reply:
Landlord Can you send me the code to solve, in this Thank you! My mail: 294073056@qq.com
Reply:
& Lt;? Xml version = "1.0" encoding = "UTF-8" & gt;?
& Lt;% @ Page Language = "C #" AutoEventWireup = "true" ContentType = "text / vnd.wap.wml"% & gt;
& Lt;! DOCTYPE html PUBLIC "- // WAPFORUM // DTD WML 2.0 // EN" "http://www.wapforum.org/dtd/wml20.dtd" & gt;
& Lt; html xmlns = "http://www.w3.org/1999/xhtml" xmlns: wml = "http://www.wapforum.org/2001/wml" & gt;
& Lt; head & gt;
& Lt; meta http-equiv = "Content-Type" content = "text / html; charset = UTF-8" / & gt;
& Lt; meta name = "viewport" content = "width = device-width; initial-scale = 1.0; minimum-scale = 1.0; maximum-scale = 2.0" / & gt;
& Lt; link rel = "stylesheet" href = "css / common.css" type = "text / css" / & gt;
& Lt; link rel = "stylesheet" href = "css / wap.css" type = "text / css" / & gt;
& Lt; title & gt; Untitled Document & lt; / title & gt;
& Lt; / head & gt;
& Lt; body & gt;
& Lt; select class = "txt130" & gt;
& Lt; option onpick = "http://www.caissa.com.cn" & gt; 2011-12-24 Departure & lt; / option & gt;
& Lt; option onpick = "http://www.caissa.com.cn" & gt; 2011-12-24 Departure & lt; / option & gt;
& Lt; / select & gt;
& Lt; / body & gt;
& Lt; / html & gt;
Reply:
Such writing is got to pay attention to & lt;! DOCTYPE html PUBLIC "- // WAPFORUM // DTD WML 2.0 // EN" "http://www.wapforum.org/dtd/wml20.dtd" & gt;
vs2003 + sdk 3rd + carbide_vs_201.exe problems encountered during commissioning
Came into contact with symbian, please, under the guidance,
After using the above environments, open the sample program, compiler, simulator missing but no display, and so on while the application is closed after report warning of. I ask how should I do to see the effects in the simulator?
Reply:
The sdk installed to the default path. net perl symbian. vs
Configuring epocroot and path
Reply:
Install symbian OS 9.1,9.2 a problem
mobile 5 which databases can be used to run
In addition to the mobile 5 mobile SQL database can be used as well as those used abroad there is a product called epocrate Essentials, his use of the database file (extension may be modified because of the .dat) is very small, I do not know if people know about it What is the use the library, whether it is SQL relational databases, or something else?
I was doing the software on a PDA because the current library file too much space, so I want to replace.
Database I'm using Mobile SQL platform is Mobile 5
Reply:
Mimer SQL Mobile
In fact, your ideas are wrong, you should use xml
Reply:
Use XML? ? Use DOM or SAX parsing XML data? If a small amount of data under circumstances, can also, if the case of large volumes of data handled? ? Efficiency will not be too low? ?
Reply:
the mobile phone will be very complex applications do, the data structure is not complicated to the extent that large-scale databases, do not you need a dozen interrelated tables?
If you use a database, you did not do anything, a few hundred K on the go, but also lead to complex systems.
Reply:
Library files, do not like the same character, whether itself also have certain structural?
A lot of data to retrieve the general idea is to use the database.
Reply:
Windows Ce Chapter 9 database programming topics
Reply:
Bar with sqlite
Reply:
Now the sun's strongly recommended their products pocket builder power builder said it was a good ppc version
I personally have not used, because sun does not provide the developer a trial version, buy on the bad mood
Personally, I strongly recommend xml! ! ! Very convenient, it saves space
Will create a modal dialog box in the softbar, click the button softbar on how not receive the keys of news?
Will create a modal dialog box in the softbar, click the button softbar on how not receive the keys of news?
Do you want to pass TouchScreen treatment or treatment by Mouse?
If yes, how do you know by the coordinate values of the corresponding key it?
Reply:
Not to mention it to you, use:
SetWindowLong (hwnd, message, Proc)
Setting text control, and then write a proc process key
Reply:
Now situation is,
1, I created a softkey bar
function by SHCreateMenuBar
2, I overloaded PreTranslateMessage function, through the function keys on the keyboard messages can be processed correctly
3, but through the touch screen click the corresponding softkey, there is no corresponding keyboard keys message, only the left mouse button pressed, moved, released the news. And I do not know how the coordinate point by (x, y) is converted to the corresponding button.
Reply:
Adding key response message on it
Reply:
smartphone in doing so can it
[Links] Several multicore programming problem and coping strategies (a problem)
Note: The full text of this article posted from drzhouweiming column (http://blog.csdn.net/drzhouweiming), to get a better reading results, you can view the original here: http: //blog.csdn.net/drzhouweiming/ archive / 2007/04/10 / 1559698.aspx
Several multicore programming problem and coping strategies (a problem)
With the birth of multi-core CPU, multi-core programming issues will be put on the programmer's schedule, there are many old programmers that long ago how CPU machine, the industry programming on multiple CPU machines has accumulated a lot of experience, Programming will be similar multi-core CPU, as long draw before multitasking programming, parallel programming and parallel algorithms aspect of the experience is enough.
I want to say yes, multicore machines and previous multi-CPU machines are very different from previous multi-CPU machines are used in specific areas, such as a server, or some may be large-scale parallel computing areas, which is easy to play the advantages of multi-CPU, multi-core machine is now applied to all aspects of ordinary users, especially the client machine you want to use a multi-core CPU, and a lot of the client software in order to play the advantages of multi-core parallel is probably no server and can be large Simple parallel computing in specific areas.
When the General Assembly when participating in CSDN and Mr. Meng Yan chatted multicore programming, Mr. Meng Yan of multicore programming feel very pessimistic about the future, and when you saw him last year in view of the prospects of multicore programming completely changed. Mr. Meng Yan wanted to have a very deep understanding of the multi-core programming, because of the time issue, and Mr. Meng Yan failed in this regard in-depth talk down. On the way back, I re-thought about at about multicore programming difficulties of today and quickly returned home to write it down, posted for everyone to share.
Serialization problem areas: a puzzle1) The acceleration factor
When measuring the performance of multiprocessor systems, an index typically requires called acceleration factor is defined as follows:
S (p) = single processor execution time (best sequence algorithm) / use p processors having the desired execution time
2) Eminem Jorda Law
There is a parallel processing when Eminem Jorda law, expressed by the following equation:
S (p) = p / (1 + (p-1) * f)
Where S (p) indicates acceleration factor
p represents the number of processorsf represents a serial section occupied by the entire program execution time proportional
When f = 5%, p = 20 时, S around (p) = 10.256
When f = 5%, p = 100 time, S (p) = 16.8
aboutThat is as long as 5% of the serial part, when the number of processors from 20 to 100, the acceleration factor only from about 10.256 to 16.8, an increase of 5 times the number of processors, the speed increase of only 60% more. Even if the number of processors to an infinite number, limit acceleration factor of only 20.
If you follow the laws of Eminem Jorda, it can be said that multi-core and almost no prospects, even if only 1% of the software can not parallelized part, then the maximum speed system can only reach 100, no amount of CPU can not increase speed performance . According to this law, we can say that the development of multi-core CPU makes the continuation of Moore's Law for many years will not reach the limit.
3) Gustafson's Law
Gustafson's law is proposed and Eminem Jorda different assumptions prove acceleration factor is beyond the limits of the laws of Eminem Jorda, Gustafson think software serial portion is fixed and will not increase with increasing size , and assuming the parallel processing execution time is fixed portion (server software may be the case). Gustafson's law using the formula described below:
S (p) = p + (1-p) * fts
Fts which represents the percentage of serial execution
If the serial ratio of 5%, the number of processors is 20, then the acceleration factor of 20+ (1-20) * 5% = 19.05
If the serial ratio of 5%, the number of processor 100, then the acceleration factor of 100+ (1-100) * 5% = 95.05
Gustafson's Law acceleration coefficient was almost proportional to the number of processors, if the reality of the situation in line with the assumption of Gustafson's Law, then the performance of the software will be able to handle with the increase in the number increases.
4) the actual situation in the serial analysis
The results gap Eminem Jorda Law and Gustafson's law is so big, so in the end the reality is that a law in line with it? I personally think that in reality neither like Eminem Jorda's law so pessimistic, but it is not so optimistic as Gustafson's Law. Why do you say? Or make a simple analysis of it.
First need to determine the software in the end there are so content can not be parallelized in order to estimate the proportion of the serial part, when in the 1960s, Bernstein would give three conditions can not be parallel computation:
Condition 1: a storage unit after the write C1, C2 of the read data unit. Called "read-after-write" competition
Condition 2: C1 after reading a data storage unit, C2 write the unit. Called "Reading write" competition
Condition 1: Write a storage unit C1, C2 write the unit. Called "write write" competition
Satisfy the above three conditions can not be any parallel execution. Unfortunately satisfy the above there are a lot of phenomena in the actual software, that is, we often say that the share issue to be locked to protect data.
Serialization problems caused if the lock protection under the premise of a fixed number of tasks, serialization proportion with the increase of software size is reduced, but unfortunately it will increase with the increasing number of tasks , that is to say, the more the number of processors, lock contention would lead to more serious serialized, so that the proportion of serialization sharply increases with the number of processors. (About serialization lock intensified competition led to the situation I will explain in another article). So serialization problem is a major challenge facing multicore programming.
5) Possible solutions
For serial of aspects of the problem, the first thought is to use less lock solutions, even the use of lock-free programming, but it is almost for ordinary programmers difficult to complete the work, because there was no lock programming algorithm is too complicated, and improper use of error-prone, and many have been published in professional journals algorithm to lock-on and later proved to be wrong, imagine how difficult it inside.
The second solution is to use an atomic operation to replace the lock, using atomic operations essentially does not solve the serialization problem, just let serialized speed greatly improved, so that the serial execution time proportional share of the greatly reduced . But chip manufacturers to provide atomic operations currently very limited, only works in a few places, chip makers may also need to continue efforts in this regard, to provide more powerful features little atomic operations of some more places to avoid locks use .
The third solution is to design and to reduce the proportion of algorithmic level serialization share. Perhaps the need to find practical aspects of parallel design patterns to reduce the use of locks, the industry in this regard has already accumulated some experience, such as task decomposition mode, data decomposition mode, data sharing mode, I believe that with the massive use of multi-core CPU there will be more new efficient parallel algorithm design patterns and come up.
The fourth solution is the chip design aspects to consider, because I know nothing about the design of the chip, so the solution may be just my wishful conjecture. The main idea is in the chip level design some new instructions that unlike previous single-core CPU instructions, as is done by a single CPU, but some parallel instruction is completed by a plurality of parallel processing CPU, so the programmer calling these Parallel processing instructions as written in serialized programming procedures, but full use of the advantage of multiple CPU.
The Author: Wei-Ming Zhou, Freelance, in the software industry more than ten years. Currently focused on the content of software testing, multi-core programming, software design and other basic aspects. Written "multi-task under Data Structures and Algorithms," a book, and is currently writing "Software Testing Practice," a book, plans to write a multi-core programming books in the near future.
Reference: "Parallel Programming Mode" Timothy Mattson waiting Ao Fujiang translation
"Parallel Computing Comprehensive Discussion on" Jack Dongarra eds Mo Yao then translated
"Parallel Programming" Barry Wilkinson waited Lu Xinda translated
"Multicore programming techniques" Shameem Akhter waiting Li Baofeng translated
"Parallel Algorithms Practice" Chen Guoliang eds
Reply:
The reply is deleted moderator
Reply:
Hello, may I ask a question rather naive, but I have not figured out the problem, that is, whether the multi-core parallel programs is to establish different core cpu parallel relationship, like a multi-cpu, like instructions and data are parallel, fair treatment of each cpu. Because for multicore cpu is two separate computing unit placed on a silicon wafer, and a storage space or a public channel. In practical terms is two cpu operator involved in computing or control.
Reply:
Mark, wait to come back to learn
Reply:
learning! thinking!
This is a new piece of treasure
Reply:
to su32fn,
In the preparation of multi-core program, you can generally multicore CPU as much to look at. Multicore just interaction (data, instruction exchange, etc.) between the increase in multi-CPU separate bus, faster.
Reply:
The current multi-core multi-core processor is only one program, there are a lot of multi-core processor architecture.
Such as IBM's Cell, SUN etc. The Spark. Because the better the kind of program, there is not conclusive, academia is also great controversy, the future of parallel algorithms, parallel system architecture development, there are many unknowns.
Reply:
mark
Reply:
Somehow, the problem does not know what to say.
The issue separate understand?
1, layer,
Threads, processes operating system to get these things right, at most, to control what they run in which the nucleus.
Here only consider the relationship between processes, threads and multicore.
2, second floor,
Usually an inner thread to complete a transaction, right?
If you want to separate, just to consider the relationship between the transaction and threads between processes, independent of the core.
So, the place with the lock with a lock, multi-threaded, multi-process, the remaining things to the operating system.
intel multicore activities that give me the phone, I did not go blending.
Reply:
If you listen to Meng Yan, then no future, I also read some of his articles. For him, "everyone is drunk, I tried to say."
In this technology inside, head master method, will be half the power in half.
Multi-CPU and multi-core aspects are interlinked.
I can not say understand, know only a few scratched the surface.
Reply:
Linux multicore debugging environment- Intel + Totalview combination
!Currently, in the software development industry, a variety of excellent performance debugging tools abound. However, most of them only support windows environment. Even if we can support linux platform, the operation is also very convenient. Thus, for long-term program to write on linux developers, how to debug it becomes a matter of headache! Intel software and Totalview Debugger is in this case came into being!
Intel software can produce excellent application performance on Intel architecture, and can take advantage of the advanced features of the latest Intel multi-core processors. Combine TotalView Debugger and Intel software debugging tools will set off a revolution under linux!
TotalView Debugger is a debugging tool for linux platform parallel environment, its IDE environment, multithreading (process) debug capabilities, memory debugging capabilities, cluster debugging capabilities are unmatched in the industry!
XLsoft to join Intel, TotalView company on October 30, 2008 held a "multicore debugging Linux environment" free training seminar in Shanghai. We are very pleased to invite you to participate in, and offers free software trial CD!
I. Registration
Online registration page:
http://www.xlsoft.com.cn/TotalView/TotalView_download.asp
registration hotline: 021-62128912 / 010-84492749
Registration Email: Marketing@xlsoft.com.cn
Second, Lectures:
1. Linux platform under debugging tools overview
2. Intel Software Features
3. Totalview Debugger Features
Third, talk time:
2008 年 10 月 30 日 (星期四) 14:00 ~ 17:00
Fourth, Venue:
Shanghai Pine City Hotel, 3rd Floor, Hyatt long hall
(Xujiahui Zhao Jia Bang Road, No. 777 Dongan junction, about 15 minutes from Hengshan Road Station)
Fourth, the activity details:
Contact: Juan
Tel: 021-62128916 Mobile: 15000262606
E-mail: kiko.wang@xlsoft.com.cn
Hotline:
021-62128912 010-84492749
More service information, please contact us Marketing@xlsoft.com.cn or contact information.
Shanghai Information Technology Co., Ltd. World-wide software
Shanghai Tel: 021-62128912 Beijing: 010-84492749
[Help] [CAB] [package] [CF2.0] [SQL] [setup] 1000 points to ask: How will CF2.0 and SQL play with three installation package CAB installation package into the application and run automatically? 2
On a see:
http://community.csdn.net/Expert/topic/5339/5339826.xml?temp=3.628176E-02
There are two master solution is as follows:
gxs0320 () () reputation: 100 Blog Add as a friend 2007-3-14 13:25:11 Score: 0
The first, labeled as a CAB package
First, the CAB CAB package sql package, and the framework to unlock, through the script repackaging click on it.
Second, the installation must be installed from the desktop is Microsoft's synchronizer ActiveSync
Written inside the desktop installer script calls C: \ Program Files \ Microsoft ActiveSync \ CEAPPMGR.EXE it
ydtf_yl (Boy_yl) () reputation: 100 Blog Add as a friend 2007-3-16 15:40:48 Score: 0
Write setup. ini, setup.cs create an installation project, add the above two documents and cab files, build on it. You can also use the tool package.
Because these two masters are a little more simple, now seeking relevant examples.
Once I immediately successful commissioning 1000 points offer!
Reply:
A few days, I will publish an article on my blog, devoted to this
Stay tuned: http: //www.cppblog.com/kuronca
Reply:
Please refer to this article http://www.cppblog.com/kuronca/articles/21818.html
Reply:
Developing and Deploying Pocket PC Setup Applications
http://msdn2.microsoft.com/en-us/library/ms838273.aspx
Deploying .NET Compact Framework 2.0 Applications with .cab and .msi Files
http://msdn2.microsoft.com/en-us/library/aa446504.aspx
Reply:
Fainted, I just finished
Several cab copied to the windows directory
The code then performs the following (you need to initialize RAPI)
CeCreateProcess (L "\\ windows \\ wceload.exe", L "/ noui / noaskdest \\ windows \\ NETCFv2.ppc.armv4.cab", NULL, NULL, FALSE, NULL, NULL, NULL, NULL, & amp; pi);
NETCFv2.ppc.armv4.cab, this operating system is concerned with the cpu
Like the other three packages (I use C ++, tested on vs2005 + ppc2003 / ppc5.0)
[Links] multicore programming in lock contention phenomenon
Note: The full text of this article posted from drzhouweiming column (http://blog.csdn.net/drzhouweiming), there is an illustration of this article, you can view the original here: http: //blog.csdn.net/drzhouweiming/archive/2007 /04/10/1559718.aspx
Multicore Programming lock contention phenomenon
The first few puzzles an explanation multicore programming and Countermeasures (a problem) mentioned in the article will lock competition with the auditor CPU serialization exacerbated by the proliferation of the phenomenon, the article came to multicore programming lock contention in-depth analysis.
For simplicity, we look at a simple case, assume that there are four pairs and other tasks at the same time start to run, assuming that the beginning of each mission there is a need to protect the operation of the lock, time-consuming to 1, the rest of each task Processed 25. This operation started after running several tasks as shown below:
Figure 1: Lock competition for tasks such as schematic
In the figure above, we can see that the first direct execution of a task to the end, with no waiting, waiting for the first two tasks one time unit, the first three tasks to wait two time units, the first three tasks waiting 3 time units.
Thus there are a total of three CPU wait six time units, if these tasks are using OpenMP where all tasks are performed at the same point on waiting to perform all the tasks completed when then execute down, then the total running time will The fourth task is the same 29 time units, the acceleration factor: (1 + 4 × 25) / 29 = 3.48
Even with an average time of 27.5 four tasks to be calculated, acceleration factor = 101 / 27.5 = 3.67
Eminem is calculated in accordance with the laws Jorda acceleration factor, then the above applications, the serial time is 1, the total time of parallel processing into the time after a serial of 100 units, if placed on a 4-core CPU running it, acceleration factor = p / (1 + (p-1) * f) = 4 / (1+ (4-1) * 1/101) = 404/104 = 3.88
This creates a strange question, then use the lock, even Eminem Jorda Law acceleration factor calculated acceleration factor not like, let alone with the acceleration factor of the Gustafson's Law.
In fact, the top four lock competition task can be extended to the more general case, assuming that there is a lock to protect the serialization time is 1, can be parallelized to run part time on a single core CPU for t, CPU core number of p , then in the p run simultaneously on a task, the total waiting time caused by lock contention is: 1 + 2 + ... + p = p * (p-1) / 2
One of the most time-consuming task time used as: (p-1) + t / p
Use the most time-consuming task that takes time to run in parallel as time, acceleration factor as
S (p) = t / (p-1 + t / p) = p * t / (p * (p-1) + t) (acceleration factor formula under lock contention)
This formula shows that there is a lock in the competition, if a nuclear fixed number of cases, the larger part of parallelized, then the acceleration factor will be greater. In parallel of time is fixed, if the CPU core a few more, then the acceleration factor will be smaller.
Or calculate several practical examples to illustrate the effect of the above formula:
So that t = 100, p = 4, the acceleration coefficient = 4 × 100 / (4 * (4-1) +100) = 3.57
So that t = 100, p = 16, the acceleration factor = 16 × 100 / (16 * (16-1) +100) = 4.7
So that t = 100, p = 64, the acceleration factor = 64 × 100 / (64 * (64-1) +100) = 1.54
So that t = 100, p = 128, acceleration factor = 128 × 100 / (128 * (128-1) +100) = 0.78
As it can be seen from the above calculation, when the number of multi-core to a certain time, acceleration factor not only increase but decreased, the number increased to 128 nuclear, acceleration coefficient of only 0.78, not as in the single-core CPU running speed.
The above example, the lock protection resulting serial code is invoked when the task starts, in fact, a serial code lock protection and other missions in other parts of the call is the same.
Competition phenomena lock type tasks in practical situations are very common, such as server software, usually each client processing tasks are equal, if a lock on the inside, then it is likely to cause the above said acceleration factor With an increase in the number of CPU cores and the phenomenon of decline.
Previous server software generally runs on a dual CPU or quad CPU machine, so acceleration factor resulting decline in lock contention is not obvious, after entering the multicore era, with the increase in the number of CPU core, this issue will become very serious, so multicore Times of programming presented new challenges. Programming ideas previously put under multitasking on multicore programming is not necessarily feasible.
So simply that previous multicore programming and multi-tasking programming or parallel computing equivalent words are unrealistic, speaking serialization problems that article put forward some countermeasures settlement, but those have yet to be the industry's continued efforts Countermeasures in order to do it.
Of course, due to the current market sales of multi-core CPU or dual-core and quad-core, until the 16-core CPU more mass to enter the market and possibly for several years, I believe lock industry in the next few years be able to face other tasks on the Competition to find a better solution.
The Author: Wei-Ming Zhou, Freelance, in the software industry more than ten years. Currently focused on the content of software testing, multi-core programming, software design and other basic aspects. Written "multi-task under Data Structures and Algorithms," a book, and is currently writing "Software Testing Practice," a book, plans to write a multi-core programming books in the near future.
Reply:
1) multi-core parallel processing needs to lock data. Is single Nucleation can save some time and do not need to lock code?
2)
So that t = 100, p = 4, the acceleration coefficient = 4 × 100 / (4 * (4-1) +100) = 3.57
So that t = 100, p = 16, the acceleration factor = 16 × 100 / (16 * (16-1) +100) = 4.7
So that t = 100, p = 64, the acceleration factor = 64 × 100 / (64 * (64-1) +100) = 1.54
So that t = 100, p = 128, acceleration factor = 128 × 100 / (128 * (128-1) +100) = 0.78
These data can not be used to illustrate the multi-core itself, the problem lies in the time t = 100 the number is too small, if taken t = 10000
See what happens:
Order t = 100, p = 4, acceleration factor = 3.995
So that t = 100, p = 16, the acceleration coefficient = 15.625
Order t = 100, p = 64, acceleration factor = 41.984
Order t = 100, p = 128, acceleration factor = 48.751
Here 128 nuclear has shown great efficiency! Thus, there can be noted that:
If the time is not long serial processing of data, use of multi-core parallel processing, and will not necessarily significantly reduce processing time, and may even increase the time! If the time series data processing is not very long, there is no need to parallel processing of many nuclear, because the efficiency is not linearly increase efficiency, serial processing of data corresponding to different times, there will be an ideal number of nuclei.
3) In any case, here not because of the poor (the case) the efficiency of the parallel processing of data and a negative efficiency of the entire value of the multi-core, in fact, a lot of multi-core parallel processing also can not directly relevant, no lock to protect data.
4) Maybe I'm on the "lock" different understanding with the author? Here the "lock" refers to multi-threaded programming in the "lock" or refers to multi-core internal processes required for the operation and use of any special coordination "lock" (in this regard I do not know ^ _ ^)?
Reply:
Sorry, the above data (t = 10000) entered incorrectly, correct as follows:
These data can not be used to illustrate the multi-core itself, the problem lies in the time t = 100 the number is too small, if taken t = 10000
See what happens:
Order t = 10000, p = 4, acceleration factor = 3.995
Order t = 10000, p = 16, acceleration factor = 15.625
Order t = 10000, p = 64, acceleration factor = 41.984
Order t = 10000, p = 128, acceleration factor = 48.751
Reply:
top!!!!
Reply:
It said "spin lock."
Reply:
The landlord does not know how to sell books, I also want a book.
Task management Time = Time + computation time
Acceleration rate = original computation time / (task time × auditor)
Where the original computation time is fixed.
Management time, the smaller the acceleration rate.
When managing time & gt; when computing time, accelerate the rate of less than 1. In this case, each task waiting time to unlock greater than computation time.
The problem of declining acceleration factor of lock contention lead author says, in fact, does not exist. Server-side processing of a document sheet Processed 10,000 units (with lock as a unit consuming) or more, relatively speaking, very little administrative overhead. And it has a large number of documents, as well as a single file on a different piece of the server; a plurality of service end while reading a file a document with the possibility of very small pieces.
Reply:
Add that, for the read-only file, it can not be locked.
Reply:
mark
Reply:
mark
Reply:
Linux multicore debugging environment- Intel + Totalview combination
!Currently, in the software development industry, a variety of excellent performance debugging tools abound. However, most of them only support windows environment. Even if we can support linux platform, the operation is also very convenient. Thus, for long-term program to write on linux developers, how to debug it becomes a matter of headache! Intel software and Totalview Debugger is in this case came into being!
Intel software can produce excellent application performance on Intel architecture, and can take advantage of the advanced features of the latest Intel multi-core processors. Combine TotalView Debugger and Intel software debugging tools will set off a revolution under linux!
TotalView Debugger is a debugging tool for linux platform parallel environment, its IDE environment, multithreading (process) debug capabilities, memory debugging capabilities, cluster debugging capabilities are unmatched in the industry!
XLsoft to join Intel, TotalView company on October 30, 2008 held a "multicore debugging Linux environment" free training seminar in Shanghai. We are very pleased to invite you to participate in, and offers free software trial CD!
I. Registration
Online registration page:
http://www.xlsoft.com.cn/TotalView/TotalView_download.asp
Registration Hotline: 021-62128912 / 010-84492749
Registration Email: Marketing@xlsoft.com.cn
Second, Lectures:
1. Linux platform under debugging tools overview
2. Intel Software Features
3. Totalview Debugger Features
Third, talk time:
2008 年 10 月 30 日 (星期四) 14:00 ~ 17:00
Fourth, Venue:
Shanghai Pine City Hotel, 3rd Floor, Hyatt long hall
(Xujiahui Zhao Jia Bang Road, No. 777 Dongan junction, about 15 minutes from Hengshan Road Station)
Fourth, the activity details:
Contact: Juan
Tel: 021-62128916 Mobile: 15000262606
E-mail: kiko.wang@xlsoft.com.cn
Hotline:
021-62128912 010-84492749
More service information, please contact us Marketing@xlsoft.com.cn or contact information.
Shanghai Information Technology Co., Ltd. World-wide software
Shanghai Tel: 021-62128912 Beijing: 010-84492749
Everyone is how to make the PDA connect CMNET network?
I need to make my PDA cmnet connected to the network and the server for data transfer? How can I do it? Is it to dial?
GPRS service has been opened, but not connected.
Reply:
DWORD dwStatus = 0;
HANDLE hConnection;
CONNMGR_CONNECTIONINFO sConInfo;
memset (& amp; sConInfo, 0, sizeof (CONNMGR_CONNECTIONINFO));
sConInfo.cbSize = sizeof (CONNMGR_CONNECTIONINFO);
sConInfo.dwParams = CONNMGR_PARAM_GUIDDESTNET;
sConInfo.dwPriority = CONNMGR_PRIORITY_USERINTERACTIVE;
sConInfo.dwFlags = CONNMGR_FLAG_PROXY_HTTP
| CONNMGR_FLAG_PROXY_WAP
| CONNMGR_FLAG_PROXY_SOCKS4
| CONNMGR_FLAG_PROXY_SOCKS5;
sConInfo.bExclusive = FALSE;
sConInfo.bDisabled = FALSE;
sConInfo.guidDestNet = IID_DestNetInternet;
ConnMgrEstablishConnectionSync (& amp; sConInfo, & amp; hConnection, 10000, & amp; dwStatus);
Reply:
Thanks pknife (Romantic Swordsman) !! I used C #, can not say at C # on how to use?
Or give me a C ++ code integrity can perform it? C ++ I can read a little bit, I do not know how to do the project.
Reply:
It is not, you can manually connect
I ask a few questions about thread inside the critical region of the set
Setting critical region can be used:
Monitor.Enter (this);
// Thread Safety Code (1)
Monitor.Exit (this);
But I like this set up, when debugging still found there two threads simultaneously entered a "thread-safe code (1)" snippet inside, why ah? Wherein the parameters, the significance is not to say that this object before Exit (object) statement calls are not allowed to visit? That is precisely, this function is locked in a code segment or lock an object, for example, if I have another function of this class and there was
Monitor.Enter (this);
// Thread Safety Code (2)
Monitor.Exit (this);
So if I go into a thread-safe code (1), then the thread can not simultaneously enter the security code (2)?
Reply:
Critical area
Advantages, simple, commonly used, easy to implement algorithm
Disadvantages: synchronization overhead is relatively large, the use of critical code segments, it is easy to enter a deadlock state, because they can not set the timeout value while waiting to enter the critical section.
If possible, this should InterlockedIncrement very small overhead of a function.
Reply:
InterlockedIncrement? C # can be used?
Reply:
guanzhu
Reply:
If multiple threads of a multithreaded application defines the critical area, the visual realization of the critical region of the "semantic", if optimistic concurrency semantics, there is no competition between the two critical data areas, the critical region where the two threads can At the same time it enters the critical region. If the serial semantics, whether or not there is competition between the critical area of data, while only one thread to enter the critical region.
CAB package using VS2005 making use of intelligent devices on three issues
Members experts:
Brother is currently learning to use the equipment to do VS2005 to MOBILE5 CAB package. But he wishes to use it, found three tricky questions, I implore you master exhibitions!
1. CAB bag can be hung in the setup.dll of Install_Exit function can not be used CDialog :: DoModal () to display the dialog box. But the use of MFC MessageBox normal.
2. CAB package MULTI_SZ type of registry editing, whether there is a valid way to write multiple lines VALUE?
3. With CAB package installation, specify the installation path is always displayed in the interface. Directly run Setup.exe installation by synchronizing the interface does not appear. How to achieve from the CAB installation package can reach and remote Setup.exe to install the same effect (that does not appear to specify the installation path of the interface) do?
Thank you first!
Reply:
Top-bit
Reply:
The first question, setup.dll There is no support for MFC, so ... In addition, MessageBox function instead of MFC, but the API ...
Reply:
I have encountered this problem Ah
How no one good solution A
Use rda access sql server, multiple operating anomalies, 8007000e
I come through on the pda rda remote access, multiple operations database exception, show 8007000E, can only exit the program, there is no one encountered the same problem, help! Using ole db.
Reply:
Yes, the language used is c plas plas
Reply:
You want to download the data is how much Argentina? It may be insufficient memory.
Reply:
Reference bottom that reply
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=350214&SiteID=1
Reply:
Thank you. It has been resolved. RDA operations can quickly Yeah, I used about 2 seconds when an operation can not hurry?
Help, ToolTips can not get out!
ToolBar system comes with the program have ToolTips, ToolBar how I created not?
In addition to setting a toolbar button to resource properties Prompt, other work needs to be done?
Reply:
Note: I have tried in eVC and VS2005, PPC and WinCE before.
Reply:
The toolkit does not seem to
About with C # GPRS network connection problems, thank you!
Now there on Windows mobile 5.0 development project, which requires the use of UDP data transfer. My problem is I do not know how to use C # code, dial-up connection GPRS network ???
I experimented with, if you are using HttpWebRequest make HTTP requests, PDA will automatically connect to the mobile GPRS network (cmnet). Then I opened my own udp program can transfer data to the specified ip address of the server port.
But I do directly Udp data transfer, PDA will not automatically dial a ....
I am looking for some information, class methods with RAS dial-up, and I tried, but without success.
Give some specific code? Some information is also OK! Preferably in C #.
Reply:
His top! Thank you, help!
Reply:
Nobody look at Oh ... help!
Reply:
No one encountered this problem, or are too lazy to go back ah? Help!
Reply:
You can use the function to establish a GPRS connection ConnMgrEstablishConnectionSync specific usage I have a transplant you look under C in C # on it
DWORD dwStatus = 0;
HANDLE hConnection;
CONNMGR_CONNECTIONINFO sConInfo;
memset (& amp; sConInfo, 0, sizeof (CONNMGR_CONNECTIONINFO));
sConInfo.cbSize = sizeof (CONNMGR_CONNECTIONINFO);
sConInfo.dwParams = CONNMGR_PARAM_GUIDDESTNET;
sConInfo.dwPriority = CONNMGR_PRIORITY_USERINTERACTIVE;
sConInfo.dwFlags = CONNMGR_FLAG_PROXY_HTTP | CONNMGR_FLAG_PROXY_WAP | CONNMGR_FLAG_PROXY_SOCKS4 | CONNMGR_FLAG_PROXY_SOCKS5;
sConInfo.bExclusive = FALSE;
sConInfo.bDisabled = FALSE;
sConInfo.guidDestNet = IID_DestNetInternet;
if (ConnMgrEstablishConnectionSync (& amp; sConInfo, & amp; hConnection, 10000, & amp;! dwStatus) = S_OK)
{
return TRUE;
}
return FALSE;
Reply:
mark
Reply:
mark
Reply:
mark
In ppc 5.0 How do I get software startup path.
Normal should be: string sPath = Application + @ "\ Data.ini";
.Ppc but not used.
Reply:
Themselves:
return System.IO.Path.GetDirectoryName (System.Reflection.Assembly.GetExecutingAssembly () GetName () CodeBase.ToString ()..);
Reply:
VC ++ I to know, C #, not help, huh !!
Reply:
string filepath = System.IO.Path.GetDirectoryName (System.Reflection.Assembly.GetExecutingAssembly () GetName () CodeBase..);
Reply:
string filepath = System.IO.Path.GetDirectoryName (System.Reflection.Assembly.GetExecutingAssembly () GetName () CodeBase..);
VS2005 making CAB installation package Chinese deal with the problem
Make good press installation package, the "Start" is displayed on the PDA moblie system menu of the program name, then when the English, Ok no problem, as the name to be displayed for the Chinese, the program will not compile passed, and tips:
Warning: Section [RegKeys] has no data
Warning: Section [DefaultInstall] key "AddReg" - there are no section entries to process
Error: The INF file contains Unicode characters that could not be converted correctly to
Prawn, how to deal with Chinese display problems
Reply:
attention
Reply:
How nobody ah
Reply:
Converted to Unicode
Reply:
So this is a tool set, but I have the solution. Specifically go to my blog to see, there's an article about this. http://www.cppblog.com/kuronca
Reply:
I just solve this problem, ha ha
You can use other tools to generate CAB file.
I am using WinCE CAB Manager
Reply:
You can not hit the first vs2005 cab packages contain Chinese characters, then use WinCE CAB Manager to modify the cab package. I've tried. If you do not understand, you can contact me qq: 42258745.
Reply:
In Setup.dll in his own generation .lnk file, create a shortcut
Reply:
WinCE CAB Manager can be used to modify the generated good cab package
Reply:
You can not use Chinese
Reply:
In Setup.dll SHCreateShortcut create a shortcut with Chinese names, and then placed in the appropriate directory
Reply:
We talk about this issue in the end is how to solve?
Reply:
I am using WinCE CAB Manager
Reply:
This may be a VS2005 problem is not with the Chinese.
Shortcuts you first in English, labeled cab, after using WinCE CAB Manager into Chinese, then sava on the line.
Reply:
But using WinCE CAB Manager to save a word not change what will become large 200k ah! Without changing the size of the case what other ways?
How to give media player for the skin
VS2005 do with a Pocket PC in MP3 player, you do not want to display WMP interface, want to use their skin, looked WMP SDK in the presentation or do not understand, exactly according to achieve: Now you have all the pieces put together .
Create a compressed file with a .zip file name extension. This compressed file contains your skin definition file, bitmaps, and any digital media files you want to include. Rename the file so that it has a .wmz file name extension. Then double- clicking your compressed skin will start it playing. The problem is how to put the .zip file into a .wmz it? do not understand, please enlighten oh
Reply:
up
Reply:
Xiongtai how to do, can send copies to me, thank you !! brother, ss128 @ 163.com
WAP-paid Employment Development Engineer
WAP development engineers
Responsibilities
System design and development
1. WAP products2. The needs analysis and be responsible for the system design
3. Complete the development tasks and the corresponding documentation
development process in accordance with the requirements of4. the project members to maintain adequate communication, problem solving, sharing experiences and lessons learned
5. leadership, assist other technical personnel to solve difficult problems arise project
Requirements:
1. Bachelor degree or above, computer-related professional
2. Can write basic technology development documents and related technical reports
3. Proficient jsp, java programming, proficient sqlserver development, proficient in html, dhtml, xml, wml, javascript
4. proficient WAP architecture, WAP communication protocol, familiar with WAP1.2 / 2.0 protocol specification, there are architectural design experience is preferred
5. Familiar apache, resin, tomcat, weblogic
6. SP WAP products, free WAP websites and other wireless applications development experience is preferred
7. familiar with Struts, spring, hibernate these frameworks
8. Learn WAP gateway network access and related knowledge, understanding WAP system operating mechanism, WAP project development experience is preferred
9. have a good team spirit, obey the overall situation, can work under pressure
10. honest, rigorous thinking, work initiative, there is a strong independent innovation ability and problem solving skills
The company is a mobile game company, due to business needs an urgent need to recruit the relevant wap developers, this post is full time, have the ability to talk about treatment, if the candidate or would like to know the specific situation, please e-mail or direct contact gengrenjie@gmail.com msn: gengrenjie@hotmail.com, no error wap development experience interference
About synchronization of j2me
Can J2ME have synchronous function?
From the Internet to find a better data, I said very clearly, I would like everyone to provide some information, the next first Thank you.
Reply:
Friendly UP! ! ! !
Reply:
I also want to know, thank LZ.
Reply:
There is further information, please come back to talk about concern ~~~~
Reply:
You said synchronization synchronize the phone with the computer it?
You can look at Syncml.
How to make your own creation by .cpl file property page in a window, with the control panel window as standard .cpl style?
In my own .cpl file created by the properties page of a modal window, but its style and the control panel is completely different to other windows.
Ask, how to make your own window, .cpl file property page is created, with the control panel window as standard .cpl style?
Reply:
Examples of the SDK codes,
C: \ Program Files \ Windows CE Tools \ wce420 \ POCKET PC 2003 \ Samples \ Win32 \ Mybacklight
You can take a look
n73 Automatic Installation Issues
It was done s60 3rd automated installation program what, I do a good job in accordance with S60_3rd_Ed_Preinstalled_Preloaded_Applications_v1_1_en automatic installation program, marked with a self-signed certificate (manually install the test no problem), the test to the memory card, but the card did not respond. To be installed in the Program Manager. Always installation fails, who knows why.
Reply:
Proposed landlord apply for a developer certificate to try, the impression has been said since the signature can not.
Reply:
Oh, I did not say clearly that I got is a developer certificate.
Reply:
Vomiting blood, find the reasons that I was wrong to write sis sys should have been placed in sys / bin / result of misplaced energy installation was successful when pigs fly. = = Wasted two days !!!
Under Mobile5.0 simulator, Error creating menu
When performing the following procedures: SHMENUBARINFO mbi;
ZeroMemory (& amp; mbi, sizeof (SHMENUBARINFO));
mbi.cbSize = sizeof (SHMENUBARINFO);
mbi.hwndParent = m_hWnd;
mbi.nToolBarId = IDR_MENU1;
mbi.hInstRes = _Module.m_hInst;
if (SHCreateMenuBar (& amp;! mbi)); here SHCreateMenuBar (& amp; mbi) = 0, the direct return -1 !!
{
return -1;
}
All lead to the following to create a window of the program is skipped, how it happened?
Reply:
Your smartphone or PPC is ah?
If the smartphone this function is not supported.
Reply:
SHMENUBARINFO mbi;
memset (& amp; mbi, 0, sizeof (SHMENUBARINFO));
mbi.cbSize = sizeof (SHMENUBARINFO);
mbi.hwndParent = m_hWnd;
mbi.dwFlags | = SHCMBF_HMENU;
mbi.nToolBarId = IDR_MENU1;
mbi.hInstRes = :: AfxGetInstanceHandle ();
mbi.nBmpId = 0;
mbi.cBmpImages = 0;
if (SHCreateMenuBar (& amp;! mbi))
{
return -1;
}
Reply:
This sentence is the key
mbi.dwFlags | = SHCMBF_HMENU
In the palm 5.4 above development, what good database?
In the palm 5.4 above development, what good database?
Reply:
sysbase sql anywhere
helloworld example I successfully compiled on the computer, but passed on the phone to run, no reaction? See text.
I use: Series 60 SDK 2.1 for Symbian OS Supporting Microsoft Visual C ++ SDK
Good compiled, Emulator (Debug) in the running without problems,
Then I called the package passed the phone, but no response helloworldbasic.app run ah?
I ask how is it?
Phone Model: d728, s60 platform, operating system 7.0.
Reply:
What compiled for? Only gcce before they can run on top of the phone, winscw run in the simulator above
Reply:
Upstairs wrong, ARMI, thumb, gcce can run on the simulator, the landlord wrote log file to play it.
Reply:
Upstairs, "write log files to play it." What does it mean?
Sdk I downloaded this version: 2nd Edition, FP1-chinese.wins
Roughly so compiled:
Bldmake bldfiles
: helloworldbasic \ directory under the group, from the command line to run firstThen: abld build wins udeb
Then check does generate helloworld.app files, emulator also see helloworld icons, and you can perform.
But after using makesis third-party software package, reached the phone will not run, and nothing happens.
Helloworld.app directly copy the files to your phone can not run.
It is not to have any special set of what?
Reply:
abld build thumb urel
Compiled into a thumb format to run on the phone
Or
abld build armi urel can also
When package not to file a mistake.
Reply:
Positive Solutions upstairs, spent abld build armi urel pack when play C: \ Symbian \ 7.0s \ Series60_v21_C \ Epoc32 \ Where can armi and wins because of the difference between the release \ armi \ urel \ helloworld.app other resource files Only app file.
Reply:
Thank you for using abld build armi urel it.
In addition, there are some good places online where development paradigm, help, learn?
This aspect of the book rarely ah
Reply:
Thank you for using abld build armi urel it.
In addition, there are some good places online where development paradigm, help, learn?
This aspect of the book rarely ah
Reply:
Forum Nokia http://forum.nokia.com.cn/sch/index.html
Development vision http://www.sf.org.cn/
http://www.newlc.com/
The result can not see how to do the console?
Learning new symbian small rookie ask:
Platform: VS 2003.net + ActivePerl5.8.8 + J2RE-1.4.2.14 + Symbian SDK 3.0-mr3.749 + carbid.vs 2.01
In this environment, I am running a console application (including the built-in example and new), the operating results of either console program does not appear, either in the simulation interface flash, then immediately enter the mobile phone GUI emulation interface .
I would like to ask, in this case, how to set up or modify the console will be able to see the results of the program, but will not jump to the simulation GUI interface?
For 88 minutes, it is lucky oh :)
PS has tried to join console- & gt; Getch ();
Or flash, simply ignored me :(
Reply:
Recommended RFileLogger
Reply:
You think about the windows in the system, how to run cmd
Reply:
Yesterday had been trial RFileLogger, not success :(
Reply:
http://blog.csdn.net/windcao/archive/2006/04/21/671982.aspx
Look at this
I use it a success
Reply:
Finally found a solution * ^ _ ^ * method is as follows, to share with you:
In the X: \ Symbian \ 9.1 \ epoc file S60_3rd_MR \ Epoc32 \ Data under the first row added textshell statements, save and then run the simulator console interface will appear.
In the console interface typing: cd private into the private folder, and then enter the program you want to run a file name (for example: engine), the statement will be using the console type output can be displayed.
If you want to switch back to the GUI interface, plus # before textshell says is commented out, run again simulator is the GUI interface Luo :)
This simple method for debugging simple engine program useful oh.
Because we have not been able to answer formal solve my problem (it is to ask other forum answers obtained: P), so there is no issue divided friends.
Reply:
Because we worked hard and we still send some good scores.
First with unskilled posts, we apologize ah :)
ps: Why can not I modify my own posts? Strange ah
Reply:
It seems necessary to give out the job, so it is still not satisfied with the knot tie ah, forgive me :)
How to override UI controls
Work today received a new task, Symbian's own control is not beautiful to me rewritten for later use, for example, can do colored buttons, progress bars, and so translucent, and now have no idea how to do, we want to have the experience Under the guidance of prawn, give directions.
Thank you!
Lib or class to write it?
Reply:
It should be to override Draw ...
Reply:
Inheritance CCoeControl
Reply:
So many days Morenhuida
I thought of it
to delete postsCCoeControl seems to be the base class for all controls
Reply:
CCoeControl seems to be the base class for all controls so you inherit from here.
Reply:
There is a document on the production of custom www.forum.nokia.com.cn.
Access web service problem under VS2005 ppc simulator, experts advise
Server program Service.cs:
[WebMethod]
public string HelloWorld ()
{
return "Hello World";
}
PPC emulator client program as follows:
private void button1_Click (object sender, EventArgs e)
{
try
{
WebDevClientlocalhost.Service sw = new WebSerDeviceClient.WebDevClientlocalhost.Service ();
sw.Url = "http://127.0.0.1/webservicetest2/Service.asmx";
MessageBox.Show (sw.HelloWorld ());
}
catch (Exception ee)
{
MessageBox.Show (ee.Message);
}
ActiveSync connection settings "Auto"
I use PPC emulator IE browser, enter http://127.0.0.1/webservicetest2/Service.asmx can get the right result, but I debug in VS2005 environment, errors Unable to connect to the remote server
At the same time, I created a windows program call web service procedure is as follows:
private void button1_Click (object sender, EventArgs e)
{
webclientlocalhost.Service sw = new WebserviceClient.webclientlocalhost.Service ();
sw.Url = "http://127.0.0.1/webservicetest2/Service.asmx";
MessageBox.Show (sw.HelloWorld ());
}
You can get the right result, experts advise, thank you
Reply:
Please help experts, cards a day, try a good variety of methods
Reply:
sw.Url = "http://127.0.0.1/webservicetest2/Service.asmx";
The 127.0.0.1 to your machine name, do not use 127.0.0.1 or localhost.
Reply:
Change the machine name, error "Could not establish connection to network", but I opened the ipconfig, find my machine IP192.168.105.114 in LAN's (IP automatically assigned), the test is successful, do not know why?
Reply:
Read some relevant examples, found behind the link URL client examples are related to the upper end of the slogan, ask me to see how the port number? I now use the program
sw.Url = "http://192.168.105.114/webservicetest2/Service.asmx";
Client can successfully access service
IIS web service onExamples of the URL
http: // zhubaobao: 1100 / WebSite1 / Service.asmx
May I ask how to view the port number?
Reply:
up
Reply:
The port number is selected when the construction project is the file system location instead of http brought, VS automatically configure the port number, if installed IIS, choose http, generally there will be no port number. On the PC, you can see directly debug port number in the address bar of the web
Wap ask two questions
How can you identify a mobile device on a WAP site?
How can you determine if a mobile device on a WAP site supports ihtml?
Asked to help a friend, very anxious, thank you
Reply:
Device Filter
Multi-core computing platforms task assignment policy issue?
I would like to know, in the multi-core platform, that is, when there is more than one CPU on a single chip, when a software program to calculate the specific tasks which tasks performed by the CPU which this decision is the compilation of the underlying layer is determined by the hardware or can determined by the software ah?
Reply:
Which thread or process which is assigned to the core operating system execute the decision, but can also interfere with the programmer through some API or system calls.
And which of the thread or process to complete the work in order to achieve load balancing of what is decided by the programmer.
Reply:
Upstairs right to say that the operating system is responsible for assigning threads or processes to core work. By default, when the operating system scheduler will try to thread / process scheduling to the core of it on the last run to run, in order to improve performance. Developers can through API or system calls to change this preference
sql mobile and sql server 2000 merge replication problems
There are the following requirements:
Pocket PC installed on the client have sql mobile, users patient data entry (new or modified data) on the pocket pc, each line of data entry, you need to save in the local sql mobile database, and also upload to the remote sql server database 2000. Taking into account the capacity constraints of the Pocket PC, when at the end of a patient, the patient information will be deleted on the pocket pc.
Now consider two scenarios: RDA and replication
.Because there are a lot of data upload with RDA feel unsafe, but programming is also very troublesome. The basic way it rejected the RDA.
With replication approach, encounter the following problems: on the pocket pc want to keep patient information current, but if you call sychonize () method, the system should download other patient information to pocket PC (or server side will delete other patients Information? not tried), so consider using host_name () to dynamic filter data, which set host_name () is PatientID, only the synchronization information relating to the PatientID. But because PatientID is dynamic, so I do not know you can not implement this feature?
I look forward to us, very grateful.
Reply:
In addition, because there may be many clients, so only the definition of a publisher, the client synchronization (VS.Net 2005 code) with the following code:
public void ReplicateData ()
{
try
{
string datasource = "Data Source = '" + GetCurrentDir () + "\\ test.sdf'; Encrypt = False";
SqlCeReplication replicator = new SqlCeReplication ();
replicator.InternetUrl = "http://192.168.0.10/test/sqlcesa30.dll";
replicator.Publisher = "% PublisherName%";
replicator.PublisherLogin = "% PublisherLogin%";
replicator.PublisherPassword = "% PublisherPassword%";
replicator.PublisherDatabase = "test";
replicator.PublisherSecurityMode = SecurityType.DBAuthentication;
replicator.Publication = "FirstRepublication";
replicator.Subscriber = Dns.GetHostName ();
replicator.SubscriberConnectionString = datasource;
//replicator.AddSubscription(AddOption.ExistingDatabase);
replicator.Synchronize ();
}
catch (Exception e)
{
MessageBox.Show (e.Message);
return;
}
MessageBox.Show ("Successful");
}
Reply:
If the data is small, not as the direct use of Web Service to synchronize.
Why not open your computer wap page ??
As stated, I feel very strange, do not also use the http protocol wap Mody, why in the computer on the network also installed special wap browser, I do not understand, but please talk about, huh ~
Reply:
I opened the WAP pages on Smartphone time, the agreement shows "wsp: //", huh.
Reply:
Because the pc browser and mobile browser is not the same, it is for example, sample sizes, the location will not show the same, so you want to download a mobile browser to see
Reply:
Wml no parsing of the
Reply:
There are no more professional explanation ah ~ ha ha
sml what stuff?
Reply:
You hold openwave try!
Reply:
Analytical different browser.
Reply:
With opera
Reply:
With opera
When dialing, how handling Call termination key (red button) is pressed?
If that
Reply:
Try RMobileCall
In PPC program can deserialize XML, to the commercial machine, they reported an XML document (1, 1) there is an error
The code is simple:
XmlSerializer serializer = new XmlSerializer (typeof (MyObject1));
MemoryStream mem = new MemoryStream (. (Byte []) cAWSDataSet.Tables ["myFile"] Rows [RowSelected] ["file"]);
MyObject1 obj1 = (MyObject1) serializer.Deserialize (mem); // this line wrong, InvalidOperation, XML document (1, 1) there is an error
MyObject1 code is as follows:
public class MyObject1
{
public GraphicAttri [] graphItems; // GraphicAttri a custom class
public int graphNO;
public MyObject1 ()
{
}
}
Later, through the InnerException found at the root level of the data is invalid, the following are the first few lines (because I think the data is invalid since it is at the root level i, those parameters of the problem certainly is the beginning of the) sequence of xml document:
xml document:
& Lt;? Xml version = "1.0" encoding = "utf-8" & gt;?
& Lt; MyObject1 xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance"
xmlns: xsd = "http://www.w3.org/2001/XMLSchema" & gt;
......
Will the root level of the data line 1 position 1 is which?
Also note that: I used to directly reference the PDA in the sequence of the class (MyObject1), then the program on the PC in using a bit.
Reply:
I do not know XMl on PDA's serialized file to the server (PC machine) after what method is used to turn back, and the PDA does not support binary serialization, but on the PDA can xml deserialization, to the PC to die, so-called "root-level data is invalid," that is MyObject1 it considered invalid root argument, how to change it, I'm confused. . . . .
Reply:
Then do an experiment, there will be a PDA generated xml serialization My Documents, and then copying them again from the PDA in the PC, then the file xml deserialized into corresponding object MyObject1, successful, this basic instructions xml document no problem.
Reply:
XML is not reading the wrong approach. One is the Load (), one is LoadXml ()
With regard to the Nokia 6600 PC Suite
My nokia 6600 is licensed, with PC Suite After installation, a start always said "PC Suite can not start", and use a Bluetooth connection Rom PC Suite, but it can be connected to the Bluetooth software that comes, I Bluetooth stack is IVT Bluesoleil, thanks please provide solutions, grateful.
Reply:
IVT Bluesoleil kit does not recognize, use Microsoft Certified PC can recognize, before re-installation, to unload a clean cut
How to achieve gprs gprs data communication between two modules?
How to achieve between two gprs gprs data communications module, to understand the whole process established communication link. 3ks
Reply:
Look gprs documents should be with the general communication flow almost
Reply:
This simple ah, a Web search to get the answer.
Reply:
The same way as ordinary networking
Survival issue heap and stack (C / S mode communications)
I wrote based on client - server (C / S) mode of application (not the network communication). Its main features are: a server running in the background (EXE), client run in the foreground (APP). Client requests to the server, then the server transmits the processed data to the client. You can normally run on the simulator, no problem, it is possible to achieve the desired effect. However, one put the phone on the big issues: First, the client can send a message to the server, the server response can also receive messages, but once the time for data communication, which uses RMessage writeback data when it quits unexpectedly .
Client - server communication part of the code:
// AStateMsg structure and imsg are customizable (TStateMsg) type, inside a 4 TINT type data.
// CLIENT
iStateBuffer.Set (reinterpret_cast & lt; TUint8 * & gt; (& amp; aStateMsg), sizeof (aStateMsg),
sizeof (aStateMsg));
messageParameters [0] = static_cast & lt; TAny * & gt; (& amp; iStateBuffer);
SendReceive (ERequstState, & amp; messageParameters [0], aStatus);
// SERVER
TPtr8 ptr (reinterpret_cast & lt; TUint8 * & gt; (& amp; imsg), sizeof (imsg),
sizeof (imsg));
TRAPD (err, iMessage.WriteL (iMessage.Ptr0 (), ptr));
if (err)
{
PanicClient (EBadDescriptor);
}
iMessage.Complete (ERequestComplete);
After the term "efficiency program," it says, is passed to the asynchronous request client data it must not be based on the stack, so I will repair
client code
Changed as follows:
HBufC8 * hbuf = HBufC8 :: NewLC (sizeof (aStateMsg));
TPtr8 ptr = hbuf- & gt; Des ();
messageParameters [0] = static_cast & lt; TAny * & gt; (& amp; ptr);
This time in the simulator can not run (compiled by), but also to the time to write back data to quit unexpectedly. I do not know heap-based data transfer is not my wording above? Please Supreme pointing.
Also, I finally just put the asynchronous mode to synchronous mode, and in the simulator is operating normally, put it on the phone is also abnormal exit.
I really Meizhe erupted, synchronous, asynchronous not work, is it this way IPC unavailable on the phone? Anybody know?
Reply:
Why did you first messageParameters [0] which put the iStateBuffer address, the second time to become a ptr address?
You messageParameters [0] in the end what to put inside?
Reply:
Give a code to study it? btsy2000@hotmail.com
Reply:
You used to get a bigger stack variables, I suspect that much of a reason to return data
Reply:
HBufC8 * hbuf = HBufC8 :: NewLC (sizeof (aStateMsg));
TPtr8 ptr = hbuf- & gt; Des ();
messageParameters [0] = static_cast & lt; TAny * & gt; (& amp; ptr); // this you pass the stack variables
You either pass HBufC8 * in, or transfer raw data buffer + size inside. But how to explain it all depends on the server into the data transfer.
HBufC8 * hbuf = HBufC8 :: NewLC (sizeof (aStateMsg));
messageParameters [0] = static_cast & lt; TAny * & gt; (hbuf- & gt; Des () Ptr ().);
messageParameters [1] = sizeof (aStateMsg);
Or
messageParameters [0] = static_cast & lt; TAny * & gt; (hbuf)
Reply:
Check the rest of the code is not necessarily a problem to find a place.
How do I play a WAV file on the phone?
Press a button to play a WAV file? How to achieve?
Reply:
Declare Function PlaySound Lib "coredll.dll" (ByVal pszSound As String, ByVal hMod As IntPtr, ByVal fdwSound As Integer) As Integer
PlaySound (Nothing, IntPtr.Zero, 0)
Example:
\ Program Files \ Windows CE Tools \ wce500 \ Windows Mobile 5.0 Smartphone SDK \ Samples \ Cs \ Phonefinder \ PhoneFinder.sln
Reply:
Or did not understand. . . .
Reply:
Call the following API in Button message processing function, the usage can check SDK documentation.
BOOL WINAPI PlaySound (
LPCSTR pszSound,
HMODULE hmod,
DWORD fdwSound
);
Reply:
Faint, I do not know which system you want to use! symbian? wince? linux?
Reply:
Since it is estimated to be posting in this area is the Windows Mobile
Reply:
Call wmp sdk it
Reply:
PlaySound This function must pay attention to the file path issues
Reply:
thank you all
Reply:
Halo ~~~~~~~~~
2007-04-07 posts have been turned up
Reply:
ECDS-MUI use the voice library can be easily achieved due to the ECDS-MUI is cross-platform development tools, writing good applications through ECDS-MUI, can SYMBIAN S60 1 \ 2 \ 3 version, PPC 2003, SP 2003 and run on SYMBIAN UIQ 3.0, and only write one set of code, download URL: http: //www.ecds-mui.com
Reply:
Is not nobody knot tie this community, we want to divide like crazy, turn around to find a sub-post?
Reply:
No, I received a notice to knot post, I end up with the secondary are not successful, how mentally retarded to not post the knot? ? ?
Worth considering ~~
I heard that Microsoft has a new technology: WCCS (Microsoft's high-performance computing platform), CCS is Microsoft's first to run parallel high-performance computing (HPC) applications software. I do not know whether to give this tool we have developed a parallel program to bring some convenience.
In addition, I would like to ask, based on the traditional. Architecture Development Method net multithreading parallel programs in ways to create multiple threads to create a thread pool, as well as asynchronous calls, etc. are equivalent to each other? There are still some differences among them. Let me give an example, such as a program that can support 100-way parallel execution, but now my only four-core CPU, that is able to support up to four parallel operation. Of course, in the parallel folding principle, we can also use these four cores to perform the above procedure, but if we had 100 threads in the programmed time to execute this program, it is actually very wasteful, because in fact Just use four threads can maximize the performance of the machine. This wasted a lot of time overhead to create threads used. Is there a flexible way for the underlying basis of existing hardware resources (such as 8-core to open eight threads) to adjust the number of threads open it?
Reply:
There ah, up to investigate how much CPU (like kernel has this function), and then open thread
Reply:
OpenMP is open based on different numbers of threads CPU usage.
But in addition to the use of multi-threaded multi-core CPU program to calculate, there are to improve the response functions in those areas open 100 threads instant may not be wasted.
Reply:
In addition, recent use .net thread pools, encountered a very strange question:
I use a lot of open thread pool thread, but sometimes there is a thread (each time a problem occurs all the time instead of many) was not able to perform complete. While these threads are accessing the same memory area, but only one thread did not execute the accomplishment, not because of the deadlock caused (if the deadlock can not be performed at least two threads finish it) we speculate about what causes it ? In addition, there is no way you can find out the threads in the thread pool which finished not implemented. There is a thread for debugging in VS2005 there is no more intuitive ways, such as to know which thread execution there.
Incidentally attach Source:
private int completeThreadNum;
public void Preprocessing (IPositionSet positionSet)
{
completeThreadNum = 0;
positionSet.InitToTraverseSet ();
while (positionSet.NextPosition ())
{
ThreadPool.QueueUserWorkItem (new WaitCallback (ThreadProc), positionSet.GetPosition ());
// Insert (positionSet.GetPosition ());
}
while (completeThreadNum & lt; positionSet.GetNum ())
{
Thread.CurrentThread.Join (1);
}
}
private void ThreadProc (object point)
{
Insert ((IPosition) point);
completeThreadNum ++;
}
public void Insert (IPosition point)
{
IPosition NewPosition = point;
for (int levelSequrence = LevelList.Count - 2; levelSequrence & gt; = -1; levelSequrence--)
{
Part currentPart = LevelList [levelSequrence + 1] .GOCPartRefByPoint (point);
currentPart.AddToSubPositionList (NewPosition);
if (currentPart.GetSubPositionNum () == 1)
{
// If part there is only one point, explain this part is new, macro block to which it belongs must also include it.
NewPosition = currentPart;
}
else
{
break;
}
}
// Update the midpoint of the different layers inside part of the point where the number of
for (int levelSequrence = LevelList.Count - 2; levelSequrence & gt; = -1; levelSequrence--)
{
((Part) LevelList [levelSequrence + 1] .GetPartRefByPoint (point)) SubPointNumIncrease (1);.
}
}
I'm With the completeThreadNum to know how many threads
not finished execution
Reply:
How many threads particular good start, this is not just open to decide how many cpu, more important is to look at your application is what, if there are a lot of IO operation, you open only on a 4-core 4 Thread words, cpu lot of time is idle.
Reply:
Memory read, count io? By the way, the memory can be read at the same time to read a plurality of bits?
Reply:
How many threads open depends on the specific application, if your application is computationally intensive, and there are many calculations can be performed in parallel (such as using OpenMP written in scientific computing program) is generally the number of threads is the number of CPU +1 or +2 < br />The program is I / O intensive, such as network servers, database servers, file servers, usually also open more threads
In order to maximize the efficiency of computers, the way we need to use performance tests to assess the number of threads.
Reply:
But for. net What better way to do performance testing?
Reply:
.net itself there are many performance counters reflect the performance of the program.
Reply:
By the way, I would like to ask whether the time allocated memory parallel processing? Suppose I am now in a multi-core platform, such as a 4-core, I cycle to a class to create multiple objects (in order to have a number of conceptual, suppose you want to create 100,000 objects, 200M of memory space occupied), and and I for every time you create (or every n create objects) to open a separate thread, allowing multiple threads to complete the bulk of the work to create an object, in this case, as opposed to a single check multicore performance without significant increase? My own analysis is: to create an object when the first to find the space available in the memory above, which requires CPU to calculate, so for multi-core architecture, a parallel performance is improved, but at the same time I think the process of memory allocation is IO-intensive process that requires a lot of reading and writing memory, and whether memory can be read in parallel? Or that speed is not the bottleneck of memory read and write performance? (Reason: CPU process is much slower than the memory read and write?), Or write process is completed in the cache, so quickly? (But this seems unlikely, because large chunks of memory to create memory-oriented, rather than repeat a memory read and write, which should lead to frequent cache misses) there is like architecture can now use MDA to Auxiliary write memory, and from this to some extent liberated the CPU, leaving the reader memory bottleneck is not CPU?
I would like to have a friend on this nuclear device some experiments to see multi-core will bring a substantial increase in performance to allocate a lot of memory, and if so, how many times can improve? Can the number of nuclei close?
Reply:
From the operating system level, the allocation of memory can be, each CPU has virtual space; however malloc implementation is not designed for parallel, it is recommended to use hoard memory allocator
Specific test See http://www.cs.umass.edu/~emery/heaplayers.html
However, such a civil level in Intel's multi-core systems, memory access is indeed a bottleneck because bus bandwidth problem
The DMA (not MDA) to communicate between devices without going through CPU design
Reply:
I use C #, in addition, what machines above, access to memory before it can be executed concurrently? And I feel very deeply, to really achieve parallel computing, parallel memory access is critical, because nothing is simple computing computing tasks without involving the calculation result is stored
Reply:
If you read and write to different memory, it can be parallel.
Reply:
You only have to abandon C # and .net Framework ...... that thing more efficient CPU worse ......
Reply:
On the memory allocation, memory allocation mechanism may now do not support the underlying parallel. However, no specific experiment too.
Instant same address for the memory to be read in parallel, the hardware will resolve the conflict, but the software, you need to prepare themselves in sync. In fact, said that the memory of the immediate parallel reading, also affected by memory bandwidth. Therefore, relatively large demand for memory bandwidth calculations need to consider using a good cache
Reply:
I'd just want to be able to read and write in parallel in different memory addresses, now think of it, forturn is very simple to do, you can create a series of objects and parallel to its initial value!
About using RIL make calls firewall problem? Help ~
About using RIL make calls firewall problem? Help ~
Which heroes have information on or examples of this, ah, I'm looking for a good few days have not been found.
Thank you first ~
Reply:
By this Code rarely revealed in.
Reply:
I have an existing code, you can share to you
Contact me
luandao2000@gmail.com
Reply:
Upstairs Hello, I have sent you a mail.
My mail is: s2356@mail.wanshih.com or zhucaiguai520@163.com
Appreciate it ~
Reply:
Landlord Can you share how you can use RIL do a firewall?
Reply:
Forgot stay in contact: wgw7812@gmail.com
Upload data
I want some data on the PPC uploaded to the server. In addition to using the socket approach, there is no other way.
Reply:
http
Reply:
Using the WS-Attachment transmit binary data
in Windows Mobilehttp://www.cnblogs.com/upto/archive/2007/03/24/ws-attachment-for-windows-mobile.html
You can also use the HttpWebRequest
Improving .NET Compact Framework HTTP Communications using HttpWebRequest and Custom ASP.NET Providers
http://msdn2.microsoft.com/en-us/library/aa446517.aspx
Delivery points before suicide
.
Reply:
Take care
Reply:
I program did not progress depressed to death also do not think of suicide, why does the landlord
Reply:
Wang told police officers to look at this article: http://www.fjdh.com/Article/HTML/Article_20050810190054.html
Reply:
Landlord certainly not to commit suicide, but nothing more depressing.
To commit suicide also should put all stars are out, right? & Gt; _ & lt;
In fact, everyone has everyone's difficulties, it wants to see open
Reply:
Why suicide?
Reply:
Why commit suicide?
Live Is Better Than scabies live!
Reply:
Halo, I do not die. This is my account number do not. To get points. ^ _ ^
But you, oh very enthusiastic.
Under resin server wap image display problems
Why do I have to add a picture display can display on port 8080, the second does not increase, then it does not display properly
Reply:
Because you are reading the data port 8080 through bar
About Flow
When Hello World to write txt file with the RFileWriteStream, becomes 0Hello World, then RFileReadStream reads:
RFileReadStream in (rFile);
HBufC * fileData = HBufC :: NewLC (in, 32);
Hello World to the screen or play no more 0,
Now all characters to a txt file is read into memory (no need to show on the screen) how can I do?
Reply:
hahaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Downstairs to tell him
Reply:
So you try to see:
_LIT (Pathfile, "");
RFile file;
int len;
unsigned char * ibuf;
file.Open (iEikonEnv- & gt; FsSession (), pathfile, EFileRead);
file.Size (len);
ibuf = new unsigned char [len];
file.Read (TPtrC (ibuf, len));
file.Close ();
Directshow write filter
Who wrote under the filter wm5, give an example.
I wrote one, but failed to register on the wm5, who knows how to solve.
Reply:
Page 122 directshow Development Guide ^ _ ^
Reply:
Read, is doing that, but that failed to register
Reply:
Do not say what is wrong, tell you who called? . . .
Reply:
wm5 of the SDK baseclass problem. To own translation
System Time
I want to calculate the time it takes to operate before and after operation and the operating system would like to take time to subtract, but looked TTime and TDateTime two classes, do not take the time to initialize, ask how to do it?
Reply:
TTime :: HomeTime ()
Reply:
TTime a;
a.HomeTime ();
for (TInt s; s & lt; 100000; s ++);
TTime b;
b.HomeTime;
TTimeIntervalMicroSeconds c = b.MicroSecondsFrom (a);
TInt d = c.Int64 ();
outputstream.WriteInt32L (d);
Why every time I take the two are the same, there TTimeIntervalMicroSeconds conversion out of the 64 long TInt, if only to write the output stream 32 length function
Reply:
Or use User :: TickCount it
And then use the results of construction TTime time
I ask how to set fullscreen posts in symbain in bulk?
I ask how to set fullscreen posts in symbain in bulk? There j2me, c ++ implementation approach?
Ask about aspects of English documents smpp
Recently to do a 6000 word about the translation, the need for a relevant document, as long as you can with a little relationship,
Which yes you can send me mail: jdftdxz@163.com
English full yes to 100 points, only 50 points in English, preferably before the 10th on to me, thank you!
Reply:
Have been sent to you tacoma@163.com
Reply:
You send the document to too many, there are more than 30 pages, there is no short point paper ah, have the best English,
Reply:
You interception of a Caesar! ! ! . . . . .
Reply:
Well, find yourself a roughly 20,000 characters, to the point upstairs to hard points
Reply:
RFC lot, just to find a good
Novice, about RFileWriteStream
I modified it button
respond to events in the HELLOWORLDBASIC example S60_3rd_FP1TInt want a written Hello.txt, the file in Epoc32 \ winscw \ c \ private
_LIT (KHelloFileName, "Hello.txt"); // this is put together and include
Rfs fe;
RFile rfile;
User :: LeaveIfErroe (fe.Connect ());
CleanupClosePushL (fe);
User :: LeaveIfErroe (rfile.Open (fe, KHelloFileName, EFileShareAny);
CleanupClosePushL (rfile);
TInt aa = 12312;
RFileWriteStream out (rfile);
CleanupClosePushL (out);
out.WriteInt32L (aa);
CleanupStack :: PopAndDestroy (4, & amp; fe);
But nothing is written after running txt file
Reply:
After writing about the call RFileWriteStream :: CommitL ()
Reply:
Function is RFile :: open question, I put the last parameter to EFileWrite on it, but I put aa initialized to 21, written in txt becomes a black box, with ue open display is 15,000,000 Results seems wrong ah, neighborhoods!
menubar smartphone can join images?
I
page http://darkarts.co.za/projects/ahack/browser/trunk/sys/wince/mhmain.c?rev=13See the following code:
# If defined (WIN_CE_POCKETPC)
menubar.nBmpId = IDB_MENUBAR;
menubar.cBmpImages = 2;
# Else menubar.nBmpId = 0;
menubar.cBmpImages = 0;
# Endif
Is not that smartphone will not be able to add pictures menubar?
Meanwhile, according to the article http://blog.csdn.net/tellmenow/archive/2006/06/27/842487.aspx said, if there are graphical buttons on the menu bar, you can set a bitmap resources nBmpId ID. Is not referring to the resource view bmp resources pulled directly inside the menu above? If so, how to write a script and should it?
Thank you!
Reply:
I do not know, csdn be closed down, Jietie it Sectional gave me
Reply:
You have to divide a word went http://community.csdn.net/Expert/TopicView.asp?id=5365459.
Reply:
Thank you
Reply:
sdk help document
How to: Create a Soft Key Bar
Mentioned in the article
Windows Mobile-based devices do not support bitmaps on the soft key bar.
Seemingly not ah.
Reply:
sure
Reply:
How to add?
Monday, February 1, 2016
It was done in conjunction GoogleMap + mobile positioning system logistics management system?
I want to develop applications in this area, probably cost? Including money and time.
Thank you!
Reply:
50w
Reply:
Follow access points
Reply:
This one. . But also the geographical positioning again. . Logistics have knowledge
Follow landlord further information ~
Open WAP browser automatically connect to the specified URL UIQ2.1 Nokia6708 under.
Open WAP browser UIQ2.1 Nokia6708 automatic connection to the specified URL.
Currently my code can be done, but does not automatically open the connection, so the trouble to help the individual.
If help is valid, it can consider the economic reward.
The following is my code:
void StartBrowser (const TDesC & amp; aUrl)
{
HBufC * param = HBufC :: NewLC (256);
param- & gt; Des () Append (_L ("4"));.
param- & gt; Des () Append (aUrl);.
TInt KUidQWebAppUid = 0x101ff7d4;
TUid id (TUid :: Uid (KUidQWebAppUid));
TApaTaskList taskList (CEikonEnv :: Static () - & gt; WsSession ());
TApaTask task = taskList.FindApp (id);
if (task.Exists ())
{
task.BringToForeground ();
HBufC8 * param8 = HBufC8 :: NewLC (param- & gt; Length ());
param8- & gt; Des () Append (* param);.
task.SendMessage (TUid :: Uid (0), * param8); // Uid is not used
CleanupStack :: PopAndDestroy (); // param8
}
else
{
RApaLsSession appArcSession;
User :: LeaveIfError (appArcSession.Connect ()); // connect to AppArc server
TThreadId id;
appArcSession.StartDocument (* param, TUid :: Uid (KUidQWebAppUid), id);
appArcSession.Close ();
}
CleanupStack :: PopAndDestroy (); // param
}
Reply:
Bangding
How to serve under windows mobile or message queue (MSMQ) program, 200 points required!
There are no friends in the windows mobile development through service or MSMQ message queue application to you?
Reply:
Microsoft's Web site to download the Optional Windows Mobile 5.0 Server Components installed.
msmq no difference on the pc mobile on.
Reply:
Use MSMQ Creating Windows Mobile remote communications program (Level 300)
Instructor: Manning Windows Mobile MVP (Microsoft Most Valuable Professional)
Course Description: MSMQ is asynchronous communication Microsoft provides a remote access .MSMQ is one of the most secure method of data transfer, support forwarding, support for delayed sending, and has a high safety in this course us. describes how the Windows Mobile program will MSMQ as a remote communication. We use .NET Compact Framework 2.0 development MSMQ program that allows Windows Mobile devices for remote communication via MSMQ and PC, and exchange of complex data.
http://www.microsoft.com/china/msdn/events/webcasts/shared/webcast/consyscourse/WindowsMobile.aspx
http://blog.csdn.net/aawolf/archive/2006/12/13/1441278.aspx
WAP transmit data problems
I do something that has a server, a client. The client is done with WAP, WAP want the data sent to the server (database does not exist) in a "queue" or "list" kind of data structure in the hope that we can give some ideas.
Reply:
socket
Reply:
Can a little specific, thank you
Reply:
simple...
Reply:
up
Reply:
The reply to be removed moderator 2012-05-16 17:09:52
Reply:
Client built a web page, containing form, pointing to a server in jsp / asp / php pages, for processing.
Get.
Reply:
Oh, a little more difficult
Reply:
The reply to be removed moderator 2008-11-05 13:40:07
How to use C # Gets Windows Mobile's CPU serial number
If that.
Reply:
http://www.cnblogs.com/upto/archive/2006/08/11/getdeviceuniqueid.html
Communication problems C / S mode! ! !
I wrote a C / S mode programs. Data after its main function is background (SERVER) receives Front (CLIENT) request the necessary data processing, then back to the front desk to the required transfer back to the front desk. Tested on the simulator, and very normal. But put on a cell phone will not work: The front desk can receive a message back, but the data can not be received. Send the data back to the front desk started to quit unexpectedly.
The reason has not been found, is depressed, experts urged.
Reply:
I do not know the code and the code on the phone simulator on whether there is a big difference. If you have (communications), mainly those places?
Reply:
Code sent me leadwill@gmail.com
Reply:
I also want to copy the code btsy2000@hotmail.com
Reply:
I also wrote a similar stuff, welcomed the exchange.
Code sent me clxnj@vip.sina.com
Reply:
ding ^^^^^^^^^^^^^^^^^^^^^^^^^^
Reply:
ding .................................
Which used nowsms, there is no detailed configuration nowsms of?
I sent a message, but the phone can not receive, do not know why
Log is normal, it is not set up wrong place?
Reply:
You must have a mobile gateway? Or is SMS cat?
Reply:
Cats must have SMS
Reply:
You can also use the phone, but it is set to the correct
Reply:
http://shop34269476.taobao.com/
Download the expat, but not used, for help
Hello everyone, I want to do something expat xml parser, on newlc download this software, but I do not know how to hang up my project, for example, I helloworldbasic program defines a xml of lit, how to use expat to resolve it? It is not to put all the header files and c files linked to the project helloworldbasic inside?
Reply:
easy
Reply:
You can first build a library of expat, then add expat libraries and header files to your project. Create a library, there are two ways, one is a static library, both the library file suffix lib, one is dynamic library, the library file suffix dll, two methods are available.
Reply:
This problem has been solved, but still want to thank you.
For a fully understand syexpat people, you say, oh very detailed.
Reply:
Your landlord is a loud noise solution, I have also experienced similar problems, I was a novice.
Reply:
I want to hang up my linux source target machine up.
WM5 PPC problem? Consult experts? ? ?
Is using vs 2005 based on mfc, PDA write a small program, mainly reading and writing files (mainly ini, txt), but when used in reading and writing ini WritePrivateProfileString, but suggesting that the function is not defined;
Read txt file in time to use the following code: CFile Myfile; Myfile.Open ("a.txt", CFile :: modeReadWrite); but that it can not find the corresponding txt file; the same code
It not on pda simulation platform is possible!
Consult experts Why is this? ? ?
Reply:
Myfile.Open ("a.txt", CFile :: modeReadWrite); If the file does not exist it should have created a
Reply:
L "a.txt"
Reply:
pc = new CFile;
pc- & gt; Open (PATH, CFile :: modeRead | CFile :: shareDenyNone)
Reply:
On Mobile is best to use an absolute path
L "\\ a.txt"
Reply:
Then you should check this function resides under WritePrivateProfileString library or header files.
You can also refer to the specific SDK Sample related inside.
Reply:
Ini to read and write the API, are not supported on the wince platform, you need to write your own, I have here a reading program
http://blog.csdn.net/yefanqiu/archive/2007/03/16/1531085.aspx
How to use vs2005 to develop applications for the ppc2002
My current PDA is installed pocketPC 2002, but I want to use vs2005 to develop, but only ppc2003 vs2005 simulator, Will, ppc2003 applications can run on ppc2002
Reply:
2002 sdk install it
Under EVC4.0 on the issue of resources, neighborhoods!
EVC4.0 below HelloWorld program after a new resource file can not be opened, do not know how it is.
Tip is: Warning: This file is signed, but not timestamped
.But it can run, only with another editor to open the resource file.
EVC is in the open, not open compiled.
Reply:
Closed posted
Reply:
top
About s60 third edition signature issue
I wrote the call list in the form of a choice after n73 Internet browser applet to start building a native of certificates with Developer Certificate, install and run no problem.
Then modify uid3 to 0xAxxxxxxx with makekeys -cert -dname "CN = Symbian OR = Symbian LTD CO = GB" test.key test.cer establish its own certificate. With signsis UITest_S60_v3.SIS UITest_S60_v3.SISX test.cer test.key establish good signature program, the test to be installed on the phone half the prompt "Unable to install the program not to be trusted provider" I ask everyone what a problem, I with their own signature appuidviewer test.key and test.cer with source code posted online (I re-compiled package in the machine too) signsis appuidviewer.SIS appuidviewer.SISX test.cer test.key. Test no problem to install on your phone.
Reply:
Bangding ......
Reply:
uid total to modify eight, identified have changed it?
Reply:
Change the UID, the proposal to re-create a different UID project of the same name, then the original project CODE move past, so there would be no general problem, although trouble spots.
Subscribe to:
Posts (Atom)