Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help FIXED| static variable help | mfc c++
#1
hey still playing around with mfc and i need some help
i'd like to set a static variable that i can use in another class

so i have
Code:
void mythingDlg::OnFileOpen32771()
{
CFileDialog opendlg(true,ect,ect);
CString m_strfilename = opendlg.GetFileName();
//rest of code
}

i wish to use
Code:
m_strfilename
here
Code:
void mythingDlg::OnBnClickedButton2()
{
     CFileDialog savedlg(false,ect,m_strfilename); ///<--------- there

}
but its undeclared , tryed putting static before my Cstring but yea ...

can someone please help me im a noob at this Smile
Reply

#2
Code:
snip

sorted xD , Put vers in .h file as well... derp
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Smile [Release] Map & Game Type Changer Plugin (Fixed) 30mba 31 22,050 07-10-2013, 16:27
Last Post: 26hz
  [Request] how to find a static model in map? tomglazer 2 2,727 12-12-2012, 03:56
Last Post: tomglazer
Information one person juggernaut FIXED WITH CODE koro35 4 3,286 11-26-2012, 13:22
Last Post: koro35
Question Help Compiler error FIXED koro35 4 4,042 11-25-2012, 21:08
Last Post: koro35
  It's Mods in a nutshell [FIXED] [FIXED] [FIXED] [FIXED] [FIXED] [FIXED] AZUMIKKEL 1 2,069 05-30-2012, 19:58
Last Post: surtek
  [FINAL] It's Mods in a nutshell [FIXED] [FIXED] [FIXED] [FIXED] [FIXED] SuperNovaAO 16 7,845 05-30-2012, 18:04
Last Post: JariZ
  Help uninitialised variable accomplishment tsoPANos 5 3,269 03-27-2012, 20:21
Last Post: Rendflex
  How to get Infected fixed? DidUknowiPwn 5 3,711 03-25-2012, 07:43
Last Post: DidUknowiPwn
Thumbs Up [Release] XP Manager V1.75 Fixed & Source Code kokole 17 11,567 03-09-2012, 21:36
Last Post: stillframe
  It's Mods in a nutshell [FIXED] [FIXED] [FIXED] [FIXED] Yamato 5 3,405 02-29-2012, 14:44
Last Post: Yamato

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.