|
I am not new to programming, though I am new to programming for windows and Visual Studio 2005. With that in mind, when I first loaded up Visual Studio 2005, and then started it, I was asked which environment I wanted to start in. I responded with C++. So now, everytime I start it up, the Start Page is giving me a bunch of C++ information. Let's say I would like to do some programming in Visual Basic, or C#. How do I change back and forth between VB, C#, and C++, etc.?
|
|
|
|
|
On the Tools menu choose Options. In the dialog options tree select "Startup". Try putting this in for the URL:
http://go.microsoft.com/fwlink/?linkid=45192&clcid=409
The next question is, how to get different URLs? Anyone?
led mike
|
|
|
|
|
Hmmm, can I access any of the compilers from the Text editor? Also, can I combine different languages in one project, or solution? I'm just not sure if there is some sort of toggle between language editors or not...
|
|
|
|
|
Yes, you can mix projects with different languages in the same solution. When you add another project to the solution, you will see the default language (in my case C++), and if you click on "other languages", you will have an opportunity to choose a different language project. If you did not install the other languages, then you will need to modify your installation.
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
That is great! I did the Full installation, so it should have loaded all languages. Where is it that one can click on "other languages"? Does this choice happen when I start a new project?
|
|
|
|
|
You go to the File Menu, Got to New and move your cursor to Project. A New Project dialog box will come up with your default language options already expanded. Below that, you should see "other languages". I am using the standard version of VS 2005, by the way.
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
How To Load Google Toolbar For Dialog??
Google Toolbar ClsID:{2318C2B1-4965-11d4-9B18-009027A5CD4F}
Code:
bool CShowToolbarDlg::LoadIEToolbar( CString strCLSID )
{
CLSID clsid;
WCHAR wsz[MAX_PATH];
::MultiByteToWideChar(CP_ACP, 0, strCLSID, -1, wsz, MAX_PATH);
HRESULT hr = CLSIDFromString(wsz, &clsid);
if ( hr != NOERROR )
return false;
::CoInitialize (NULL);
IUnknown* puk;
hr = ::CoCreateInstance(clsid, NULL, CLSCTX_INPROC_SERVER, IID_IUnknown, (void**)&puk);
if (FAILED(hr))
return false;
IDeskBand *pdb;
hr = puk->QueryInterface(IID_IDeskBand, (void**)&pdb);
HWND hBand;
if (SUCCEEDED(hr))
{
pdb->GetWindow(&hBand);
if(hBand == 0)
return false;
CWnd *pWnd = CWnd::FromHandle(hBand);
}
m_pReBar = new CReBar();
m_pReBar->Create(this);
CWnd *pWnd = CWnd::FromHandle(hBand);
if(pWnd==NULL) return false;
m_pReBar->AddBar(pWnd,NULL,NULL, RBBS_BREAK);
REBARBANDINFO rbbi;
rbbi.cbSize = sizeof(rbbi);
rbbi.fMask = RBBIM_CHILDSIZE | RBBIM_IDEALSIZE | RBBIM_SIZE;
rbbi.cxMinChild = 0;
rbbi.cyMinChild = 10;
rbbi.cx = rbbi.cxIdeal = 250;
UINT nCount = m_pReBar->GetReBarCtrl().GetBandCount();
m_pReBar->GetReBarCtrl().SetBandInfo(nCount-1, &rbbi);
return true;
}
Error:
pdb->GetWindow(&hBand);
if(hBand == 0)
return false;
Why hBand is NULL??
|
|
|
|
|
MyNothing wrote: HWND hBand;
It's not initialized to anything.
John P.
|
|
|
|
|
to questions really, how do i amke the program i've created into an exe that can be run on any pc, secondly how can i make it into a program that can be installed onto other people's pc's. I'm sure it's easy but i'm a newbie, and any help would be much appreciated
|
|
|
|
|
That's called deployment - Lots of info here: Deployment (C++)[^]
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
How about using an installer ?
InstallShield, VISE, NSIS, ...
|
|
|
|
|
|
Look at QSetup Installation Suit
sanket patel
|
|
|
|
|
Hi,
I'm coming up to speed on C++ AddIns (I plan to write one). Having played with a lot of samples, I think I've got a handle on the basic architecture.
I see that it's common to have TWO dlls registered for a given AddIn -- one that seems to be just a bootstrap that tells VS about the other one (the projects are typically called MyAddin and MyAddinControl).
I see it's quite possible to do it all in a single dll, and in fact that's the framework provided by the VS wizard when you create an AddIn. So I'm wondering why people seem to like to split it in two pieces? Is there some advantage to doing that?
Thanks!
DB
|
|
|
|
|
Purpose is to develop secure application, which will store sensitive data only in RAM, preventing sensitive data to be written on hard drive. Turning off the computer will erase data stored in RAM. THANKS A LOT
marcelse
|
|
|
|
|
I do not know about managed code, but in unmanaged code ‘new’ and ‘malloc’ would not normally allocate virtual memory, although that may have changed. Dig through the docs and code to find out.
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
Thanks for your reply John, I have read a lot of documentation, but only info I got is that operation system will decide what memmory will give to application, physical or virtual, but I have to be 100% sure that sensitive data were not written on HDD.
marcelse
|
|
|
|
|
All I know is that ‘malloc’ use to only allocate memory from the heap and MS’s older version of ‘new’ use to get the actual memory by calling ‘malloc’ before calling the C++ constructor. MS’s newest OS may not work that way any more, but testing it by allocating really huge amounts of memory may give you the answer.
May be you should check if ‘Jeffrey Rickter’ has written a new book that covers that, or may be one of his articles in MSJ mag.
Good Luck!
(There seem to be some network problems – I tried to post this 3 times, so far)
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
I think that you can't be sure of that: it is the operating system that decide to store temporary part of the virtual memory on the HDD to free some resources. Probally you can't bypass that mechanism, I don't know any function to mark the pages of memory as "sensitive" and leave they on the RAM.
Sorry
Cheers,
Russell
|
|
|
|
|
John R. Shaw wrote: do not know about managed code, but in unmanaged code ‘new’ and ‘malloc’ would not normally allocate virtual memory, although that may have changed. Dig through the docs and code to find out.
new and malloc do allocate virtual memory and have done since memory virtualisation was introduced.
Steve
|
|
|
|
|
|
Hello!
seach for the concepts like RamFS, RAM disk....
http://www.superspeed.com/desktop/ramdisk.php
sanket patel
|
|
|
|
|
THANK YOU ALL, FOR YOUR REPLY, I will try to find out more about ramfs,virtuallock, AWE - alocatephysicalpage
REGARDS
marcelse
|
|
|
|
|
REPLY TO ALL:
Solution is AWE .... Address Windowing Extensions
it can allocate physical RAM and then map it to use...
not so straightforward but, I hope it will fit my needs..
THANKS
marcelse
|
|
|
|
|
I am creating few keys in registry through MFC. Everything works well in some systems but in some systems it doesn't create, what could be the problem??
|
|
|
|