|
Dennis L wrote:
...i want to write a very advanced algorythm to make registration very strong...
I've never heard of a registration algorithm. Please explain.
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
David
Sounds like this is yet another attempt to provide some 'foolproof' software licensing, a la "Enter your name and a registration key" which then goes on to validate (or not) and allow use of the software.
Steve S
|
|
|
|
|
How to control the system volume(sound) control
|
|
|
|
|
|
See if this article helps.
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
Does this example help any?
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
Hey
How can I get a IDispatchpointer to a running instance of an IE?
Greetings from Bali
Frank
|
|
|
|
|
You can enumerate shell windows using "ShellWindows" object (clsid is in exdisp.h or comdef.h)
Then enumarate shell windows (that includes ie instances as well) using ISehllWindow interface. Query items for IWebBrowser2 interface if it has one, get a window handle (IWebBrowser::get_HWND), then get window class GetClassName and see if it's an IE ("IEFrame").
Edward.
m_spSHWinds.CreateInstance(__uuidof(SHDocVw::ShellWindows));
}
|
|
|
|
|
I have testet this with the result if a call my function to receive the dispatch pointer from a VB Applikation it's work fine.
But if I call the dll from an asp site via IIS I get an error
class not registered at
m_spSHWinds.CreateInstance(__uuidof(SHDocVw::ShellWindows));
Greetings from Bali
|
|
|
|
|
Hello All
I have got a dialog based application in which I have placed a TabControl and then OnInitDialog I have addedd the Dialogs like
// Craete the modless dialogs for each tab page
m_pConfigDlg = new CAscSettingsDlg(&m_tabMain);
m_pTrustAnchorDlg = new CAscTrustAnchorDlg(&m_tabMain);
and then
if(m_tabMain.GetItem(TABPAGE_CONFIGURE_ARP, &tcItem))
{
tcItem.lParam = (LPARAM) m_pConfigDlg;
m_tabMain.SetItem(TABPAGE_CONFIGURE_ARP, &tcItem);
}
things work fine all the time application runs fine but when I press on the Dialog on some control like edit box and press "Enter" all the Controls on a tab disappear and then I change the tab and get back and every controls come back ,
best regards
Muhammad Aftab Alam
|
|
|
|
|
well, by default, the "enter" will call OnOk, which will close the dialog.
you need to override OnOk ( or something like that ).
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
Hi, I have the following code:
CString itemcount2;<br />
SetDlgItemText(IDC_BUGGER, _T(itemcount));<br />
GetDlgItemText(IDC_BUGGER,itemcount2);<br />
for (int i=1;i<itemcount;i++){<br />
<br />
<br />
<br />
CString sku;<br />
CString model;<br />
CString qty;<br />
CString sell;<br />
<br />
<br />
int nItemCount = atoi(itemcount2) - 1;<br />
itemcount2.Format(_T("%d"),nItemCount);<br />
<br />
sku=ini.GetValue("Item"+itemcount2,"Sku");<br />
model=ini.GetValue("Item"+itemcount2,"Model");<br />
qty=ini.GetValue("Item"+itemcount2,"QTY");<br />
sell=ini.GetValue("Item"+itemcount2,"Sell");<br />
<br />
<br />
const int IDX = m_sold.InsertItem(i, _T(""));<br />
m_sold.SetItemText(IDX, 0,itemcount2);<br />
m_sold.SetItemText(IDX, 1,sku);<br />
m_sold.SetItemText(IDX, 2,model);<br />
m_sold.SetItemText(IDX, 3,qty);<br />
m_sold.SetItemText(IDX, 4,sell);
The idea is to get the String for itemcount out of an ini file. Then to loop the function to the value of itemcount. Lets say for example that itemcount = 4, in the list control it will add all the items etc, but it will continue adding rows until -43.
I have worked out that if I didnt have the
int nItemCount = atoi(itemcount2) - 1;<br />
itemcount2.Format(_T("%d"),nItemCount); in it, that it wouldn't create rows to -43, however it wouldn't show all the data I needed to add to the list control.
Is there anyway to stop it from going below 0?
I dont know if anyone can understand this, I barely do. itemcount is read from an ini file using CIniEx.
Thanks in advance
Ashman
|
|
|
|
|
Ashman wrote:
SetDlgItemText(IDC_BUGGER, _T(itemcount));
If itemcount is an int , this statement makes no sense. If it is not an int, then the following statement is in error:
for (int i=1;i<itemcount;i++)
Ashman wrote:
const int IDX = m_sold.InsertItem(i, _T(""));
This statement looks odd as i is never 0. In other words, the first item added has an index of 1.
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
hello
can u please suggest some code for capturing the mouse coordinates on clicking?
|
|
|
|
|
|
From MSDN...
afx_msg void OnLButtonDown( UINT nFlags, CPoint point );
...
point
Specifies the x- and y-coordinate of the cursor. These coordinates are
always relative to the upper-left corner of the window.
To get the coordinates into screen coordinates, use CWnd::ClientToScreen (...).
Iain.
|
|
|
|
|
Hi,
GetCursorPos function retrieves the cursor's position, in screen coordinates. Just use it in your click handler.
BOOL GetCursorPos(
LPPOINT lpPoint // cursor position
);
Vitali
http://www.creative-case.com
|
|
|
|
|
hi ,
This thread is for all those developers who want to write application for Nokia and other small mobile phones using VC++,
every body intrested can share views here and post problems and suggestion regarding it , cauz it might help many ppl who r new to this kind of development.
Waiting for ure participations
No Worries!
|
|
|
|
|
For all those developers who are willing to write Symbian software, my suggestion is to stay away from Nokia's SDK for Visual Studio. This SDK is just a bunch of command-line driven scripts, and are EXTREMELY clumsy.
Borland is about to release it's mobile development environment, called Borland Mobile Studio. I would wait for it before really starting to build Symbian apps with C++. If you can't wait, learn Java. It's development tools are much more convinient.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
|
Thanx for this information but i said
ppl Who are intrested in Nokia Symbian Series60 mobile phone development using VC++ not using Java.
Atif Mushtaq
No Worries!
|
|
|
|
|
Who has said u it is just bunch of command line driven script , u can integrate SDK in VC6.0 and VS.NET,There is also series 60 appwizard available for VC6.0.
I Know it is hard but you can program it with little effort.
as far as borland c concerns u can wait for it but i can't .
also Java might be a preferable tool for you , but as a VC guy when it comes to performence I wont see jave my first choice.
One last thing this offer was only for those who like to take up the challenge instead of worrying about the difficulties.
Atif Mushtaq
No Worries!
|
|
|
|
|
The SDK consists of tools, that are ran by Perl scripts. It requires a specific version of Java Runtime Environment in order to run, it even has an authentic 'if' check to ensure this, which can be happily ignored by hacking the registry a bit. Several attempts on Nokia's behalf to alter the SDK to support a newer version of JRE have not succeeded: the only way to use a newer version of JRE properly is to fool the scripts to think that you're running an older version.
The integration of the SDK with the VS environment allows you to create the emulator versions of your applications. These files, strangely, are compiled for the x86 processor, and further suggest that you cannot use them directly on a target mobile device, but must use the command-line tool to compile, for example, an ARM4 version. Another oddity in the SDK, and especially in the design of the emulator.
From what I know about emulators, you should be able to build an ARM4-version, then run the emulator with that version in order to test it, and finally move the version directly over to the phone. Naturally, this creates difficulties in the debugging phase (because cross-processor debugging is hard to implement), so that is probably why they chose the "alternative" approach in the first place, putting the emulator run x86 code.
The documentation for the Avkon framework is outright poor. In order to effectively do something with Avkon, you must browse through numerous example codes and header files. Creating docs with an automated documentation generator is fast, agreed, but leaving documentation to a this type of state is just about unacceptable. The Symbian framework (Eikon/Uikon) documentation is much more better off, you can actually perform lots just by reading it.
From my point of view, the C++ SDK provided by Nokia is very poor compared to the J2ME tools that one of the posters mentioned. Java might have poorer performance, but when running on a mobile phone environment, the speed is not always the most important thing. The performance gain provided by C++ is, of course, a natural plus, but the lacks in the SDK drag it below Java's level.
Perhaps you don't have time to wait for Borland to release their tool. That is okay: it's completely possible to develop Symbian software for Nokia mobile devices by using the tools currently available. But in order to become a major hit, so that lots and lots more people would take up the challenge and write competitive software for Nokia's phones, a clean-up of their act with the SDK is definitely necessary.
Also, I happen to develop professional software for Symbian OS and Nokia's phones, so I have taken up the challenge you so keenly describe. It really is a challenge, but with simple refining, it would have been an easy thing to make developing Series 60 software with Nokia's C++ SDK much much easier
The latest news, however, have it that Nokia is attempting to incorporate Perl for the Symbian platform.. This suggests that they might completely abandon the C++ SDKs in favor of better solutions.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
Yes it is right u need JRE1.3.1 and perl 8.5 to make this SDK work , it is also right that to run the examples come with this SDK , need some command line work to convert in visual c++ workspace.
no dought help is very poor ,code generated by appwizard is difficult to understand but above all these things it is only choice if u use C++,i seen features in Borland Mobile Studio , it has minimum support for C++ ,what it does provide all SDK under one hood , some wizards but ultimately u will have to use same SDK.(no Form builder )
so what a c++ guy can do either migrate to J2ME , or stay with it.
One important thing u have bundle of c++ code , which u might convert to run on mobile devices , what would u do with that translate all that in java.
so no way i can migrate to jave cauz i dont have much time , can u suggest some third option like new Mobile WebServices in .NET 2003 as i have only heared about it.or some other better solutions.thanx
Atif Mushtaq
No Worries!
|
|
|
|
|
How I can click button 1 then bitmap 1 will appear.
|
|
|
|
|